diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:25:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch) | |
tree | 5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_parser.py | |
parent | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff) | |
download | python-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz |
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 64839572..4a12c59c 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -236,7 +236,7 @@ class ParserMissingArcDescriptionTest(CoverageTest): def test_missing_arc_description(self): # This code is never run, so the actual values don't matter. - parser = self.parse_text(u"""\ + parser = self.parse_text("""\ if x: print(2) print(3) @@ -271,7 +271,7 @@ class ParserMissingArcDescriptionTest(CoverageTest): assert expected == parser.missing_arc_description(11, 13) def test_missing_arc_descriptions_for_small_callables(self): - parser = self.parse_text(u"""\ + parser = self.parse_text("""\ callables = [ lambda: 2, (x for x in range(3)), @@ -290,7 +290,7 @@ class ParserMissingArcDescriptionTest(CoverageTest): assert expected == parser.missing_arc_description(5, -5) def test_missing_arc_descriptions_for_exceptions(self): - parser = self.parse_text(u"""\ + parser = self.parse_text("""\ try: pass except ZeroDivideError: @@ -310,7 +310,7 @@ class ParserMissingArcDescriptionTest(CoverageTest): assert expected == parser.missing_arc_description(5, 6) def test_missing_arc_descriptions_for_finally(self): - parser = self.parse_text(u"""\ + parser = self.parse_text("""\ def function(): for i in range(2): try: @@ -384,7 +384,7 @@ class ParserMissingArcDescriptionTest(CoverageTest): assert expected == parser.missing_arc_description(18, -1) def test_missing_arc_descriptions_bug460(self): - parser = self.parse_text(u"""\ + parser = self.parse_text("""\ x = 1 d = { 3: lambda: [], |