summaryrefslogtreecommitdiff
path: root/test/test_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_parser.py')
-rw-r--r--test/test_parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_parser.py b/test/test_parser.py
index c25611cf..220db17e 100644
--- a/test/test_parser.py
+++ b/test/test_parser.py
@@ -125,3 +125,10 @@ class ParserFileTest(CoverageTest):
self.make_file(fname, text, newline=newline)
cp = self.parse_file(fname)
self.assertEqual(cp.exit_counts(), counts)
+
+ def test_encoding(self):
+ self.make_file("encoded.py", """\
+ coverage = "\xe7\xf6v\xear\xe3g\xe9"
+ """)
+ cp = self.parse_file("encoded.py")
+ cp.exit_counts()