mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
This commit is contained in:
parent
3ddc435af6
commit
ce8e33a095
107 changed files with 436 additions and 794 deletions
|
|
@ -258,7 +258,7 @@ class ImportSideEffectTests(unittest.TestCase):
|
|||
site.abs__file__()
|
||||
for module in (sys, os, __builtin__):
|
||||
try:
|
||||
self.assertTrue(os.path.isabs(module.__file__), repr(module))
|
||||
self.assertTrue(os.path.isabs(module.__file__), `module`)
|
||||
except AttributeError:
|
||||
continue
|
||||
# We could try everything in sys.modules; however, when regrtest.py
|
||||
|
|
@ -310,7 +310,7 @@ class ImportSideEffectTests(unittest.TestCase):
|
|||
|
||||
def test_sitecustomize_executed(self):
|
||||
# If sitecustomize is available, it should have been imported.
|
||||
if "sitecustomize" not in sys.modules:
|
||||
if not sys.modules.has_key("sitecustomize"):
|
||||
try:
|
||||
import sitecustomize
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue