Back out changeset b6336ba796d4 until fix for #13303.
authorCharles-François Natali <neologix@free.fr>
Tue, 8 Nov 2011 19:38:11 +0000 (20:38 +0100)
committerCharles-François Natali <neologix@free.fr>
Tue, 8 Nov 2011 19:38:11 +0000 (20:38 +0100)
Lib/test/test_import.py

index cb50c12249a14e27bbf48bc5be546abd2f57379d..338f1d417d4f5d7c4eb99f8dbf8257a932f5eead 100644 (file)
@@ -112,9 +112,10 @@ 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)