summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:58:26 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:58:26 (GMT)
commit4d28d96afb3adfb3ee90724257ec7b53da568dcc (patch)
tree04868ff88bd312c83e449f86c6774a6e666bd631
parentdd6cd65b980c06e66b3d643f7b09ad5901851e05 (diff)
downloadcpython-4d28d96afb3adfb3ee90724257ec7b53da568dcc.zip
cpython-4d28d96afb3adfb3ee90724257ec7b53da568dcc.tar.gz
cpython-4d28d96afb3adfb3ee90724257ec7b53da568dcc.tar.bz2
Refer to __builtin__.file, not __builtins__.file
-rw-r--r--Lib/test/test_inspect.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 33e0b0d..c67c23c 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)')