test_import: test_execute_bit_not_copied() was actually a no-op: enable it.

This commit is contained in:
Charles-François Natali 2011-11-08 19:43:09 +01:00
commit 31846c4372
1 changed files with 3 additions and 4 deletions

View File

@ -112,10 +112,9 @@ class ImportTests(unittest.TestCase):
if not os.path.exists(fn): if not os.path.exists(fn):
self.fail("__import__ did not result in creation of " self.fail("__import__ did not result in creation of "
"either a .pyc or .pyo file") "either a .pyc or .pyo file")
s = os.stat(fn) s = os.stat(fn)
self.assertEqual( self.assertEqual(stat.S_IMODE(s.st_mode),
stat.S_IMODE(s.st_mode), stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
finally: finally:
del sys.path[0] del sys.path[0]
remove_files(TESTFN) remove_files(TESTFN)