summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-23 15:27:56 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-23 15:27:56 (GMT)
commit06e37587ffddc5fb77f93ab2cefafd6cbd326aee (patch)
tree6fefc73a4261790df9ca3f6b94b206fe1e482a39 /Lib/test/test_imp.py
parent78157b3f6fa220177ef595e30f788dfe9b97d850 (diff)
downloadcpython-06e37587ffddc5fb77f93ab2cefafd6cbd326aee.zip
cpython-06e37587ffddc5fb77f93ab2cefafd6cbd326aee.tar.gz
cpython-06e37587ffddc5fb77f93ab2cefafd6cbd326aee.tar.bz2
Try to further debug occasional buildbot failure
Diffstat (limited to 'Lib/test/test_imp.py')
-rw-r--r--Lib/test/test_imp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index 3f419b7..7b0c727 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -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)