mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Refer to __builtin__.file, not __builtins__.file
This commit is contained in:
parent
dd6cd65b98
commit
4d28d96afb
1 changed files with 3 additions and 2 deletions
|
@ -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)')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue