This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
cpython
Watch
2
Star
0
Fork
You've already forked cpython
0
mirror of
https://github.com/python/cpython.git
synced
2025-11-03 23:21:29 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
01d7eba316
cpython
/
Lib
/
test
/
test_doctest3.txt
6 lines
82 B
Text
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-21 23:46:34 +00: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 05:43:42 +00:00
<class 'str'>
Reference in a new issue
Copy permalink