summaryrefslogtreecommitdiff
path: root/test/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-01-30 11:49:52 -0500
committerNed Batchelder <ned@nedbatchelder.com>2011-01-30 11:49:52 -0500
commitadf371a94bb59e76502611adafc1fb6640608bf6 (patch)
tree9784597560b8872cf7eb7508016ac09ee5029fc4 /test/test_parser.py
parent0459af8e8aa6766d5348baa7bd65b6464d3b08f4 (diff)
downloadpython-coveragepy-adf371a94bb59e76502611adafc1fb6640608bf6.tar.gz
A bunch more places where a file close should be in a finally clause.
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 c25611c..220db17 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()