[Python-checkins] cpython (merge 3.2 -> default): test_import: test_execute_bit_not_copied() was actually a no-op: enable it.

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


http://hg.python.org/cpython/rev/b6336ba796d4
changeset:   73461:b6336ba796d4
parent:      73459:9cec4a4797b2
parent:      73460:f0b1d8e4de4f
user:        Charles-François Natali <neologix at free.fr>
date:        Tue Nov 08 19:43:09 2011 +0100
summary:
  test_import: test_execute_bit_not_copied() was actually a no-op: enable 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