From 16943d29886df91300121fced970134d0c2b9806 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 30 Jan 2011 11:49:52 -0500 Subject: A bunch more places where a file close should be in a finally clause. --- test/test_parser.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_parser.py') 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() -- cgit v1.2.1