diff options
author | loic <loic@dachary.org> | 2016-12-15 18:33:16 +0100 |
---|---|---|
committer | loic <loic@dachary.org> | 2016-12-15 18:33:16 +0100 |
commit | 580e24f3cf0e991b400e1a254d7cc9220b0c1a4c (patch) | |
tree | fb1e1712e2c112aa353352577abf25df8735d2a9 /tests/modules/zerocoverage/zero.py | |
parent | 65eefc5a62d5fae39921e7608039c1deff6be614 (diff) | |
download | python-coveragepy-issue-502-7.tar.gz |
also use AST for while constants in python-2.7 #502issue-502-7
The node.id is set to False, True or None is python-2.7: there is no
reason to only check for it with python-3. It is more reliable than
using the DEFAULT_PARTIAL_ALWAYS regexps on source lines.
close #502
Diffstat (limited to 'tests/modules/zerocoverage/zero.py')
-rw-r--r-- | tests/modules/zerocoverage/zero.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/zerocoverage/zero.py b/tests/modules/zerocoverage/zero.py new file mode 100644 index 0000000..6ae283f --- /dev/null +++ b/tests/modules/zerocoverage/zero.py @@ -0,0 +1,3 @@ +def method(self): + while True: + return 1 |