summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
commitd02be78c3a0ee3022be56c623bb9bdcad1e9acd4 (patch)
tree1e74153bb4741f6a9e2f1e1f55d2b9960a490bb3 /tests/test_arcs.py
parenta035bde3320a501720ae722dc6b54fe7ff5c8647 (diff)
downloadpython-coveragepy-git-d02be78c3a0ee3022be56c623bb9bdcad1e9acd4.tar.gz
style: fix long lines and avoid backslashesnedbat/unittest2pytest
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index c4d34d30..2f49ecfb 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1410,10 +1410,10 @@ class MiscArcTest(CoverageTest):
filename = self.last_module_name + ".py"
fr = cov._get_file_reporter(filename)
arcs_executed = cov._analyze(filename).arcs_executed()
- assert fr.missing_arc_description(3, -3, arcs_executed) == \
- "line 3 didn't finish the generator expression on line 3"
- assert fr.missing_arc_description(4, -4, arcs_executed) == \
- "line 4 didn't run the generator expression on line 4"
+ expected = "line 3 didn't finish the generator expression on line 3"
+ assert expected == fr.missing_arc_description(3, -3, arcs_executed)
+ expected = "line 4 didn't run the generator expression on line 4"
+ assert expected == fr.missing_arc_description(4, -4, arcs_executed)
class DecoratorArcTest(CoverageTest):