Commit 06e37587 authored by Antoine Pitrou's avatar Antoine Pitrou

Try to further debug occasional buildbot failure

parent 78157b3f
...@@ -320,6 +320,12 @@ class PEP3147Tests(unittest.TestCase): ...@@ -320,6 +320,12 @@ class PEP3147Tests(unittest.TestCase):
'/foo/bar/foo.cpython-32.foo.pyc') '/foo/bar/foo.cpython-32.foo.pyc')
def test_package___file__(self): 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. # Test that a package's __file__ points to the right source directory.
os.mkdir('pep3147') os.mkdir('pep3147')
sys.path.insert(0, os.curdir) sys.path.insert(0, os.curdir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment