diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-02 11:46:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-02 11:46:37 -0400 |
commit | 3be75d375c82003ea7ca9d3bc9502a46ff3a5822 (patch) | |
tree | 9763c537f5c710562d198fd7986da2e1979cfe3b /tests/test_coverage.py | |
parent | b4bbc37f3748a447c2f85218f8092a94fc8e13fe (diff) | |
download | python-coveragepy-git-3be75d375c82003ea7ca9d3bc9502a46ff3a5822.tar.gz |
Undo some 3.7b4 ast tweaks
Diffstat (limited to 'tests/test_coverage.py')
-rw-r--r-- | tests/test_coverage.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py index 45abb2be..c8ac55df 100644 --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -582,12 +582,7 @@ class SimpleStatementTest(CoverageTest): """, [2, 3] ) - if env.PYVERSION < (3, 7): - # Before 3.7, module docstrings were included in the lnotab table, - # unless they were the first line in the file? - lines = [2, 3, 4] - else: - lines = [3, 4] + lines = [2, 3, 4] self.check_coverage("""\ # Start with a comment, because it changes the behavior(!?) '''I am a module docstring.''' @@ -1147,11 +1142,7 @@ 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" + arcz="-22 2D DE E-2 23 36 6A A-2 -68 8-6 -AB B-A" self.check_coverage("""\ # A comment. class theClass: |