diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-05-17 22:28:57 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-05-17 22:28:57 -0400 |
commit | e4e17518c99d4503c513410d164f28723968bdb7 (patch) | |
tree | f2a53fe98ea05444a9633ca68714ff4a0cc7d144 /tests/test_parser.py | |
parent | d0d1f4ad6f0190309be76ee486253995a547bf34 (diff) | |
download | python-coveragepy-e4e17518c99d4503c513410d164f28723968bdb7.tar.gz |
Files with incorrect encoding declarations are no longer ignored. #351
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 9359c40..2cf39ba 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -142,7 +142,11 @@ class ParserFileTest(CoverageTest): fname = fname + ".py" self.make_file(fname, text, newline=newline) parser = self.parse_file(fname) - self.assertEqual(parser.exit_counts(), counts) + self.assertEqual( + parser.exit_counts(), + counts, + "Wrong for %r" % fname + ) def test_encoding(self): self.make_file("encoded.py", """\ |