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
commit3243add2eee93ee3c23afa1f04bc15d72dab479e (patch)
tree6958a4437e5ed808a6a31f3c9457f91a4115cb33 /tests/test_api.py
parent724dba8e31ca636a120a71c3cc74449ef470a5e1 (diff)
downloadpython-coveragepy-3243add2eee93ee3c23afa1f04bc15d72dab479e.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 1018ff0..6f14210 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