summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-13 06:46:58 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-13 06:46:58 -0400
commitaf0f406a83035e292f27735be3366532fc491775 (patch)
tree8bad3c1b7978be204f682e7a7b657c5117cf1362
parent12d5f6186b193685fb3817f2035a5858109a5a08 (diff)
downloadpython-coveragepy-git-af0f406a83035e292f27735be3366532fc491775.tar.gz
Cleanups
-rw-r--r--tests/test_summary.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py
index 850f4dfd..fda44ee7 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -142,8 +142,7 @@ class SummaryTest(CoverageTest):
self.assertEqual(self.line_count(report), 3)
self.assertIn("mybranch.py ", report)
- self.assertEqual(self.last_line_squeezed(report),
- "mybranch.py 5 0 2 1 86%")
+ self.assertEqual(self.last_line_squeezed(report), "mybranch.py 5 0 2 1 86%")
def test_report_show_missing(self):
self.make_file("mymissing.py", """\
@@ -342,7 +341,7 @@ class SummaryTest(CoverageTest):
# pylint: disable=line-too-long
# Name Stmts Miss Cover
# ----------------------------
- # mycode NotPython: Couldn't parse '/tmp/test_cover/63354509363/mycode.py' as Python source: 'invalid syntax' at line 1
+ # mycode NotPython: Couldn't parse '...' as Python source: 'invalid syntax' at line 1
# No data to report.
last = self.squeezed_lines(report)[-2]
@@ -350,11 +349,10 @@ class SummaryTest(CoverageTest):
last = re.sub(r"parse '.*mycode.py", "parse 'mycode.py", last)
# The actual error message varies version to version
last = re.sub(r": '.*' at", ": 'error' at", last)
- self.assertEqual(last,
- "mycode.py NotPython: "
- "Couldn't parse 'mycode.py' as Python source: "
- "'error' at line 1"
- )
+ self.assertEqual(
+ last,
+ "mycode.py NotPython: Couldn't parse 'mycode.py' as Python source: 'error' at line 1"
+ )
def test_dotpy_not_python_ignored(self):
# We run a .py file, and when reporting, we can't parse it as Python,