mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
The reload(sys) test no longer works due to changes in the import
semantics.
This commit is contained in:
parent
b02158efa3
commit
7995ed204a
1 changed files with 4 additions and 4 deletions
|
|
@ -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(\'\')'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue