summaryrefslogtreecommitdiff
path: root/Lib/test/test_imp.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert test_imp over to unittest.Brett Cannon2006-10-031-29/+33
|
* Skip test_imp if threading is not available.Brett Cannon2004-12-181-1/+5
| | | | Closes bug #1083645. Thanks Detlef Vollmann.
* Rewrote. As reported on c.l.py, when the test suite is run viaTim Peters2003-04-261-20/+30
| | | | | | | | | | | | | | "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.
* Import test_support properlyNeal Norwitz2003-02-171-1/+1
|
* Actually run these tests from regrtest.py.Neal Norwitz2003-02-171-2/+5
| | | | | | There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
* Cleanup from patch #683257:Neal Norwitz2003-02-121-0/+26
Add missing INCREFs and re-indent returns to be consistent. Add \n\ for lines in docstring Add a pathetic test Add docs