summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-6/+6
|
* Using CleanImport to revert a reload of the os module doesn't work due to ↵Nick Coghlan2009-10-181-1/+8
| | | | function registrations in copy_reg. The perils of reloading modules even for tests...
* Avoid replacing existing modules and sys.path in import testsNick Coghlan2009-10-171-6/+9
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-1/+1
|
* Issue #3806: LockTests in test_imp should be skipped when thread is not ↵Hirokazu Yamamoto2008-09-081-4/+10
| | | | | | available. Reviewed by Benjamin Peterson.
* Add imp.reload(). This to help with transitioning to 3.0 the reload() built-inBrett Cannon2008-08-061-0/+19
| | | | has been removed there.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* 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