summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-12-24 21:42:37 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-12-24 21:42:37 -0500
commit5d767b89fc87b836f2cf93c4eb34252ee3bf1804 (patch)
treef0d7b157e6dd20c7db1f7c1c97bd3da85aa34a87 /tests/test_parser.py
parent0a011554c83f185785fce8c7f4746d4fa050c55b (diff)
downloadpython-coveragepy-5d767b89fc87b836f2cf93c4eb34252ee3bf1804.tar.gz
if 0: might not do what we want, use a non-constant
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 44a261d..2a4c88a 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -81,7 +81,7 @@ class PythonParserTest(CoverageTest):
def __init__(self):
pass
- if 0: # nocover
+ if len([]): # nocover
class Bar:
pass
""")