summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-11-17 16:06:16 +0000
committerNed Batchelder <ned@nedbatchelder.com>2016-11-17 16:06:16 +0000
commit929297eef803362c3b6156751e81b2d84e5ff4c4 (patch)
treeb080839032a47608a9cc823d4732eeb49c71ed25 /tests/test_api.py
parentaf724468a47be24056d684ce836251124c052f19 (diff)
downloadpython-coveragepy-git-929297eef803362c3b6156751e81b2d84e5ff4c4.tar.gz
Don't collapse in an ascii-only file-world. #533
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 1018ff09..6f142100 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -100,16 +100,6 @@ class ApiTest(CoverageTest):
filename, _, _, _ = cov.analysis(sys.modules["mymod"])
self.assertEqual(os.path.basename(filename), "mymod.py")
- def test_unencodable_filename(self):
- code = """a = 1\nb = 2\n"""
- cov = coverage.Coverage()
- cov.start()
- globs = {}
- exec(compile(code, "wut\xe9\xea\xeb\xec\x01\x02.py", 'exec'), globs)
- cov.stop()
- self.assertEqual(globs['a'], 1)
- self.assertEqual(globs['b'], 2)
-
def test_ignore_stdlib(self):
self.make_file("mymain.py", """\
import colorsys