diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-01-30 11:49:52 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-01-30 11:49:52 -0500 |
commit | 16943d29886df91300121fced970134d0c2b9806 (patch) | |
tree | 0e621681a8c90b7c7e3dabcaa0b241693129846b /test/test_parser.py | |
parent | fefc80883476d3974b3aee692ab274d1f563f7bb (diff) | |
download | python-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.py | 7 |
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() |