]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Rewrote. As reported on c.l.py, when the test suite is run via
authorTim Peters <tim.peters@gmail.com>
Sat, 26 Apr 2003 14:31:24 +0000 (14:31 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 26 Apr 2003 14:31:24 +0000 (14:31 +0000)
commit579bed7300816590eca2855aa3c971d2ee38d6be
treef511578c752a92de18f08677b8437151a7814d41
parent511834153085edaf1f7280994270134a03393659
Rewrote.  As reported on c.l.py, when the test suite is run via
"import test.autotest", temp_imp failed because the import lock was
still held at the test's end (the test assumed it wouldn't be), and
then a RuntimeError got raised at the end of the entire suite run because
test_imp cleared the import lock as a side effect of trying to test that
the import lock wasn't held (but a legitimate import is in progress,
so the lock should be held, and the import machinery complained when it
found that the lock was unexpectedly cleareed).

Also removed the unittest scaffolding.  It didn't buy anything here, and
the test was raising regrtest's TestFailed instead of using the unittest
failure-reporting mechanisms.
Lib/test/test_imp.py