summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importhooks.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge revs 42842, 42844, and part of a whitespace normalizationTim Peters2006-03-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | patch from the trunk. This stops test_socket_ssl from dying with: TypeError: 'NoneType' object is not callable in urlparsre.py's urljoin() when the tests are run in this order: test_??? test_importhooks test_socket_ssl "test_???" can be various things, but must be there. For example, test_urllibnet "works" to provoke the failure. Alas, nobody actually understands _why_ test_socket_ssl fails then, or why this hack makes the problem go away. Amazingly, the tests just happened to run in the right order on the 2.4 branch on two Windows buildbot slaves today, causing them both to fail their most recent test runs before this patch.
* Whitespace normalization.Tim Peters2004-09-241-1/+1
|
* Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.Phillip J. Eby2004-09-231-2/+16
|
* Actually run these tests from regrtest.py.Neal Norwitz2003-02-171-1/+3
| | | | | | There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
* PEP 302 + zipimport:Just van Rossum2002-12-301-0/+204
- new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.