summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-05-17 22:28:57 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-05-17 22:28:57 -0400
commit5291dd2839d5adfe64106501e7f9fe4984cf53ac (patch)
treeb68981225ab39f81859533f9525303053ebe84a4 /tests/test_parser.py
parent9e764b195723b15f29ed8182d1c6e37ac4a52c58 (diff)
downloadpython-coveragepy-git-5291dd2839d5adfe64106501e7f9fe4984cf53ac.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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 9359c408..2cf39baa 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", """\