Refer to __builtin__.file, not __builtins__.file

This commit is contained in:
Martin v. Löwis 2003-05-03 09:58:26 +00:00
parent dd6cd65b98
commit 4d28d96afb

View file

@ -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)')