diff options
author | garar <none@none> | 2015-08-14 12:47:52 +0000 |
---|---|---|
committer | garar <none@none> | 2015-08-14 12:47:52 +0000 |
commit | 3e91ce7723dd163cca6f0caa1721de0a6bd5a3e4 (patch) | |
tree | 1cfea96190973f2b4c4b4d06d9703d2683d8de52 /tests/test_summary.py | |
parent | c62707914e5a90a0a843b7ed72fae0153ce97cd6 (diff) | |
parent | 9616b5e2032028bfa38115c10ea09ca95d3311e1 (diff) | |
download | python-coveragepy-git-3e91ce7723dd163cca6f0caa1721de0a6bd5a3e4.tar.gz |
Merge default
Diffstat (limited to 'tests/test_summary.py')
-rw-r--r-- | tests/test_summary.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py index 15e948ab..b765f313 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", """\ @@ -367,7 +366,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] @@ -375,11 +374,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, |