Try to further debug occasional buildbot failure

This commit is contained in:
Antoine Pitrou 2012-06-23 17:27:56 +02:00
parent 78157b3f6f
commit 06e37587ff

View file

@ -320,6 +320,12 @@ def test_source_from_cache_no__pycache__(self):
'/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)