diff options
author | Charles-François Natali <neologix@free.fr> | 2011-11-08 18:42:02 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-11-08 18:42:02 (GMT) |
commit | 69d44fdb90fda47a1d6a46e3a49f67487b84c3ac (patch) | |
tree | 7fe8636cdde801b9cd30488ec11438f6e88c06c6 | |
parent | bc91b469512aec60e26778114442c174b7a146bc (diff) | |
download | cpython-69d44fdb90fda47a1d6a46e3a49f67487b84c3ac.zip cpython-69d44fdb90fda47a1d6a46e3a49f67487b84c3ac.tar.gz cpython-69d44fdb90fda47a1d6a46e3a49f67487b84c3ac.tar.bz2 |
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
-rw-r--r-- | Lib/test/test_import.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 7c54032..63b8776 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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) |