From d02be78c3a0ee3022be56c623bb9bdcad1e9acd4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 31 Jan 2021 10:10:47 -0500 Subject: style: fix long lines and avoid backslashes --- tests/test_debug.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/test_debug.py') diff --git a/tests/test_debug.py b/tests/test_debug.py index 42d7945e..16669407 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -176,9 +176,8 @@ class DebugTraceTest(CoverageTest): """.split() for label in labels: label_pat = r"^\s*%s: " % label - assert len(re_lines(out_lines, label_pat).splitlines()) == \ - 1, \ - "Incorrect lines for %r" % label + msg = "Incorrect lines for %r" % label + assert 1 == len(re_lines(out_lines, label_pat).splitlines()), msg def test_debug_sys(self): out_lines = self.f1_debug_output(["sys"]) @@ -190,9 +189,8 @@ class DebugTraceTest(CoverageTest): """.split() for label in labels: label_pat = r"^\s*%s: " % label - assert len(re_lines(out_lines, label_pat).splitlines()) == \ - 1, \ - "Incorrect lines for %r" % label + msg = "Incorrect lines for %r" % label + assert 1 == len(re_lines(out_lines, label_pat).splitlines()), msg def test_debug_sys_ctracer(self): out_lines = self.f1_debug_output(["sys"]) -- cgit v1.2.1