summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/source
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-05-18 14:15:20 (GMT)
committerBarry Warsaw <barry@python.org>2010-05-18 14:15:20 (GMT)
commit04b5684d002de5e3eb4232bb287c6884afb61bf3 (patch)
tree4a7c6928b97e00d09015b286153dfaf9cf7b7efb /Lib/importlib/test/source
parent2b80fa693914dcfe7983767328d0b545e0fd4c0e (diff)
downloadcpython-04b5684d002de5e3eb4232bb287c6884afb61bf3.zip
cpython-04b5684d002de5e3eb4232bb287c6884afb61bf3.tar.gz
cpython-04b5684d002de5e3eb4232bb287c6884afb61bf3.tar.bz2
Repair test failure. Bug 8727.
Diffstat (limited to 'Lib/importlib/test/source')
-rw-r--r--Lib/importlib/test/source/test_file_loader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
index 9059405..343e120 100644
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -10,6 +10,8 @@ import stat
import sys
import unittest
+from test.support import make_legacy_pyc
+
class SimpleTest(unittest.TestCase):
@@ -136,6 +138,7 @@ class BadBytecodeTest(unittest.TestCase):
file.write(new_bc)
if del_source:
os.unlink(mapping[name])
+ make_legacy_pyc(mapping[name])
return bytecode_path
@source_util.writes_bytecode_files