[Python-checkins] cpython (3.2): test_import: test_execute_bit_not_copied() was actually a no-op: fix it.

charles-francois.natali python-checkins at python.org
Tue Nov 8 19:44:06 CET 2011


http://hg.python.org/cpython/rev/f0b1d8e4de4f
changeset: 73460:f0b1d8e4de4f
branch: 3.2
parent: 73452:3b9f58f85d3e
user: Charles-François Natali <neologix at free.fr>
date: Tue Nov 08 19:42:02 2011 +0100
summary:
 test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
files:
 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
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -112,10 +112,9 @@
 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /