Repair test failure. Bug 8727.

This commit is contained in:
Barry Warsaw 2010-05-18 14:15:20 +00:00
parent 2b80fa6939
commit 04b5684d00
3 changed files with 13 additions and 3 deletions

View file

@ -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