diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:58:26 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:58:26 +0000 |
commit | 8f30db230219a6fa827d322403d01b75bc363713 (patch) | |
tree | 8b220d25dcc245d5eb506911630ef0b75f32136f | |
parent | 720db6bff23cdf0b1035abe2c0829cd0339af8ff (diff) | |
download | cpython-8f30db230219a6fa827d322403d01b75bc363713.tar.gz |
Refer to __builtin__.file, not __builtins__.file
-rw-r--r-- | Lib/test/test_inspect.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 33e0b0d7e1..c67c23c414 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -105,8 +105,9 @@ istest(inspect.ismethod, 'mod.StupidGit.abuse') istest(inspect.ismethod, 'git.argue') istest(inspect.ismodule, 'mod') istest(inspect.istraceback, 'tb') -istest(inspect.isdatadescriptor, '__builtins__.file.closed') -istest(inspect.isdatadescriptor, '__builtins__.file.softspace') +import __builtin__ +istest(inspect.isdatadescriptor, '__builtin__.file.closed') +istest(inspect.isdatadescriptor, '__builtin__.file.softspace') test(inspect.isroutine(mod.spam), 'isroutine(mod.spam)') test(inspect.isroutine([].count), 'isroutine([].count)') |