]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to further debug occasional buildbot failure
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 15:27:56 +0000 (17:27 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 15:27:56 +0000 (17:27 +0200)
Lib/test/test_imp.py

index 3f419b76e2a1d48761b75bf01d1775f4a5958ec1..7b0c7273c22f0d1cc2cce545364afe24524e6380 100644 (file)
@@ -320,6 +320,12 @@ class PEP3147Tests(unittest.TestCase):
             '/foo/bar/foo.cpython-32.foo.pyc')
 
     def test_package___file__(self):
+        try:
+            m = __import__('pep3147')
+        except ImportError:
+            pass
+        else:
+            self.fail("pep3147 module already exists: %r" % (m,))
         # Test that a package's __file__ points to the right source directory.
         os.mkdir('pep3147')
         sys.path.insert(0, os.curdir)