[issue14080] Sporadic test_imp failure

Stefan Krah report at bugs.python.org
Wed Feb 22 20:15:49 CET 2012


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

No, this is sys.path after sys.path.insert(0, os.curdir):

['.', '', '/usr/local/lib/python33.zip', '/usr/home/stefan/hg/cpython/Lib', '/usr/home/stefan/hg/cpython/Lib/plat-freebsd9', '/usr/home/stefan/hg/cpython/build/lib.freebsd-9.0-RELEASE-amd64-3.3-pydebug']


It is also possible to trigger the failure by adding this to the top of 
test_imp.py:

try:
    importlib.import_module("_sqlite3")
except ImportError:
    pass


Then it's sufficient to run only test_imp (and not test_sqlite).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14080>
_______________________________________


More information about the Python-bugs-list mailing list