mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Repair test failure. Bug 8727.
This commit is contained in:
parent
2b80fa6939
commit
04b5684d00
3 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue