diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-01 08:16:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-01 13:00:38 -0400 |
commit | 420c01394a31415d7a7cbb80be196bcfca48482c (patch) | |
tree | d71672faede9de984c024eadc678ae05ff5af558 /tests/test_coverage.py | |
parent | 53f00a00b7cfb5e856136ea600844160746d6ae2 (diff) | |
download | python-coveragepy-git-420c01394a31415d7a7cbb80be196bcfca48482c.tar.gz |
style: parens should indent the same as their opening line
Diffstat (limited to 'tests/test_coverage.py')
-rw-r--r-- | tests/test_coverage.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py index fc4263de..9164db0f 100644 --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -22,14 +22,14 @@ class TestCoverageTest(CoverageTest): b = 2 """, [1,2] - ) + ) # You can provide a list of possible statement matches. self.check_coverage("""\ a = 1 b = 2 """, ([100], [1,2], [1723,47]), - ) + ) # You can specify missing lines. self.check_coverage("""\ a = 1 @@ -38,7 +38,7 @@ class TestCoverageTest(CoverageTest): """, [1,2,3], missing="3", - ) + ) # You can specify a list of possible missing lines. self.check_coverage("""\ a = 1 @@ -47,7 +47,7 @@ class TestCoverageTest(CoverageTest): """, [1,2,3], missing=("47-49", "3", "100,102") - ) + ) def test_failed_coverage(self): # If the lines are wrong, the message shows right and wrong. @@ -96,7 +96,7 @@ class TestCoverageTest(CoverageTest): a = 1 assert a == 99, "This is bad" """ - ) + ) # Other exceptions too. with pytest.raises(ZeroDivisionError, match="division"): self.check_coverage("""\ @@ -104,7 +104,7 @@ class TestCoverageTest(CoverageTest): assert a == 1, "This is good" a/0 """ - ) + ) class BasicCoverageTest(CoverageTest): @@ -1256,7 +1256,7 @@ class ExcludeTest(CoverageTest): g = 7 """, [1,3,5,7] - ) + ) def test_simple(self): self.check_coverage("""\ |