The reload(sys) test no longer works due to changes in the import

semantics.
This commit is contained in:
Guido van Rossum 1997-08-02 03:19:26 +00:00
parent b02158efa3
commit 7995ed204a

View file

@ -153,10 +153,10 @@ import marshal
reload(marshal) reload(marshal)
import string import string
reload(string) reload(string)
import sys ## import sys
try: reload(sys) ## try: reload(sys)
except ImportError: pass ## except ImportError: pass
else: raise TestFailed, 'reload(sys) should fail' ## else: raise TestFailed, 'reload(sys) should fail'
print 'repr' print 'repr'
if repr('') <> '\'\'': raise TestFailed, 'repr(\'\')' if repr('') <> '\'\'': raise TestFailed, 'repr(\'\')'