summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-12-27 10:01:32 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-12-27 10:01:32 -0500
commit280a9ab2056ae33616528955e99a419632d92b3b (patch)
treea782427b7ee29070c7aa7fa942cc00ee8956f873 /tests/test_files.py
parent213bb9e47da67363c7ad3b190b4498dc668f9066 (diff)
downloadpython-coveragepy-280a9ab2056ae33616528955e99a419632d92b3b.tar.gz
Two windows fixes for tests
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 62d3e32..d7b8bd4 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -262,6 +262,7 @@ class GetZipBytesTest(CoverageTest):
sys.path.append(zip_file) # So we can import the files.
for encoding in ["utf8", "gb2312", "hebrew", "shift_jis"]:
filename = zip_file + "/encoded_" + encoding + ".py"
+ filename = filename.replace("/", os.sep)
zip_data = get_zip_bytes(filename)
zip_text = zip_data.decode(encoding)
self.assertIn('All OK', zip_text)