summaryrefslogtreecommitdiff
path: root/tests/test_coverage.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-05 07:32:08 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-05 07:32:08 -0400
commit14961ba86519ec98213f1315e2a94b9377db8778 (patch)
tree12b46c4df41ab8ca1e9b9a7d39b32ecf29ec89b8 /tests/test_coverage.py
parenta1a683ccbfe34928e5fa4733643e3f1c8fbed015 (diff)
downloadpython-coveragepy-git-14961ba86519ec98213f1315e2a94b9377db8778.tar.gz
Python 3.7 no longer includes class docstrings in the lnotab table
Diffstat (limited to 'tests/test_coverage.py')
-rw-r--r--tests/test_coverage.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
index bda61fc6..fae85bc6 100644
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -1124,6 +1124,11 @@ class CompoundStatementTest(CoverageTest):
[1,10,12,13], "")
def test_class_def(self):
+ if env.PYVERSION < (3, 7):
+ arcz="-22 2D DE E-2 23 36 6A A-2 -68 8-6 -AB B-A"
+ else:
+ # Python 3.7 no longer includes class docstrings in the lnotab table.
+ arcz="-22 2D DE E-2 26 6A A-2 -68 8-6 -AB B-A"
self.check_coverage("""\
# A comment.
class theClass:
@@ -1141,7 +1146,7 @@ class CompoundStatementTest(CoverageTest):
assert x == 1
""",
[2, 6, 8, 10, 11, 13, 14], "",
- arcz="-22 2D DE E-2 23 36 6A A-2 -68 8-6 -AB B-A",
+ arcz=arcz,
)