mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
This commit is contained in:
parent
bc91b46951
commit
69d44fdb90
@ -112,10 +112,9 @@ class ImportTests(unittest.TestCase):
|
||||
if not os.path.exists(fn):
|
||||
self.fail("__import__ did not result in creation of "
|
||||
"either a .pyc or .pyo file")
|
||||
s = os.stat(fn)
|
||||
self.assertEqual(
|
||||
stat.S_IMODE(s.st_mode),
|
||||
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||
s = os.stat(fn)
|
||||
self.assertEqual(stat.S_IMODE(s.st_mode),
|
||||
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||
finally:
|
||||
del sys.path[0]
|
||||
remove_files(TESTFN)
|
||||
|
Loading…
Reference in New Issue
Block a user