summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-11 06:23:37 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-11 06:23:37 -0500
commit866d3f9fe853de9da6ee456a4ed5aa1cfa453e1f (patch)
treeaee0e4de8c01690e5e9de4a08ba5d3ef9aa0b12a /tests
parentd985f6852634cccc03d020b5a2cc425f74ae2f8c (diff)
downloadpython-coveragepy-git-866d3f9fe853de9da6ee456a4ed5aa1cfa453e1f.tar.gz
Class docstrings shouldn't be considered executable. Not sure what happened there...
Diffstat (limited to 'tests')
-rw-r--r--tests/test_coverage.py2
-rw-r--r--tests/test_parser.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
index 1173e1e6..dd47707c 100644
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -1140,7 +1140,7 @@ class CompoundStatementTest(CoverageTest):
x = theClass().foo()
assert x == 1
""",
- [2, 3, 6, 8, 10, 11, 13, 14], "",
+ [2, 6, 8, 10, 11, 13, 14], "",
arcz=".2 2D DE E-2 23 36 6A A-2 .8 8-6 .B B-A",
)
diff --git a/tests/test_parser.py b/tests/test_parser.py
index fe907117..470ea156 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -145,8 +145,8 @@ class PythonParserTest(CoverageTest):
def func(x, y=5):
return 6
- class Foo: # only this..
- '''9''' # ..and this are statements.
+ class Foo: # this is the only statement.
+ '''9'''
@foo # nocover
def __init__(self):
'''12'''
@@ -169,7 +169,7 @@ class PythonParserTest(CoverageTest):
parser.raw_statements,
set([3, 4, 5, 6, 8, 9, 10, 13, 15, 16, 17, 20, 22, 23, 25, 26])
)
- self.assertEqual(parser.statements, set([8, 9]))
+ self.assertEqual(parser.statements, set([8]))
def test_class_decorator_pragmas(self):
parser = self.parse_source("""\