]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
authorCharles-François Natali <neologix@free.fr>
Tue, 8 Nov 2011 18:42:02 +0000 (19:42 +0100)
committerCharles-François Natali <neologix@free.fr>
Tue, 8 Nov 2011 18:42:02 +0000 (19:42 +0100)
Lib/test/test_import.py

index 7c540327fcdb41c48d3967aca757e34b86b5f3ab..63b8776e7769e31f08f04d39b0caf7d0d4c7daab 100644 (file)
@@ -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)