This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
cpython
mirror of
https://github.com/python/cpython
Watch
4
Star
1
Fork
You've already forked cpython
0
Code
Issues
Releases
Wiki
Activity
590665c399
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-21 19:46:34 -04:00
Here we check that `__file__` is provided:
>>> type(__file__)
Backed out changeset af29d89083b3 (closes #25548) (closes #27498)
2016-07-14 01:13:29 -03:00
<class 'str'>