This website requires JavaScript.
Explore
Help
Register
Sign In
mirrors
/
cpython
Watch
0
Star
0
Fork
0
You've already forked cpython
mirror of
https://github.com/python/cpython.git
synced
2024-12-27 02:35:13 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
0fbd94ced9
cpython
/
Lib
/
test
/
test_doctest3.txt
6 lines
82 B
Plaintext
Raw
Normal View
History
Unescape
Escape
add __file__ to the globals available for tests loaded via DocFileSuite; this is useful for locating supporting data files, just as it is in Python modules
2004-12-22 07:46:34 +08:00
Here we check that `__file__` is provided:
>>> type(__file__)
Bug #2565: The repr() of type objects now calls them 'class', not 'type' - whether they are builtin types or not.
2008-04-07 13:43:42 +08:00
<class 'str'>
Reference in New Issue
Copy Permalink