summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix test_site to not call open('...', 'wU'), as that now raises an error.Michael W. Hudson2005-05-271-1/+1
| | | | Is anyone running the test suite regularly at the moment?
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-2/+2
|
* Fixes a bug in testing code handling .pth files that did not restore the ↵Brett Cannon2004-07-131-29/+26
| | | | | | | | | | | | | | | | original module that is removed for testing "import" lines. Originally deleted the entry from sys.modules and then just let other code that needed it to import it again. Problem with this solution is that it lead to code that had already imported the module in question to have their own reference to a new copy of the module in question that new code couldn't reach. This lead to a failure in test_strptime since it monkey-patched the 'time' module it had a reference to while _strptime had its own reference to another copy of 'time' from being imported by test___all__ that it was using for a calculation. Also moved the testing code out of the PthFile class and into the actual test class. This was to stop using 'assert' which is useless with a -O execution.
* Restructure testing of .pth files. Move previous functions into a class andBrett Cannon2004-07-101-37/+82
| | | | | create a testing method that can be called to make sure that the handling of the .pth file was correct.
* * Silence a test failure that resulted when test_site was run byRaymond Hettinger2004-06-271-7/+10
| | | | | | | | | | regrtest.py after it ran test_frozen. This test was really only designed to be run immediately after startup. Afterwards, other modules could be loaded when had not been fixed-up by site.py Took the chicken way out and only tested those modules known to be imported by site.py. * Normalized whitespace.
* Removed test_sitepackages test. Skip discovered that it only passed if PythonBrett Cannon2004-06-081-8/+0
| | | | had already been installed previously.
* Refactored site.py into functions. Also moved over to using sets.Brett Cannon2004-06-051-0/+199
New regression test suite.