From 4d28d96afb3adfb3ee90724257ec7b53da568dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 3 May 2003 09:58:26 +0000 Subject: Refer to __builtin__.file, not __builtins__.file --- Lib/test/test_inspect.py | 5 +++-- 1 file 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)') -- cgit v0.12