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
commit16943d29886df91300121fced970134d0c2b9806 (patch)
tree0e621681a8c90b7c7e3dabcaa0b241693129846b /test/test_parser.py
parentfefc80883476d3974b3aee692ab274d1f563f7bb (diff)
downloadpython-coveragepy-git-16943d29886df91300121fced970134d0c2b9806.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 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()