summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_doctest3.txt
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-12-21 23:46:34 (GMT)
committerFred Drake <fdrake@acm.org>2004-12-21 23:46:34 (GMT)
commit7c404a4bf7b9061ee013bef361b6eba951218d80 (patch)
tree921da1debae9f4ac526fc818426d6ba55896bb8f /Lib/test/test_doctest3.txt
parente57d7b179a6171b013030c6751e8c0999251200b (diff)
downloadcpython-7c404a4bf7b9061ee013bef361b6eba951218d80.zip
cpython-7c404a4bf7b9061ee013bef361b6eba951218d80.tar.gz
cpython-7c404a4bf7b9061ee013bef361b6eba951218d80.tar.bz2
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
Diffstat (limited to 'Lib/test/test_doctest3.txt')
-rw-r--r--Lib/test/test_doctest3.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_doctest3.txt b/Lib/test/test_doctest3.txt
new file mode 100644
index 0000000..54a96d5
--- /dev/null
+++ b/Lib/test/test_doctest3.txt
@@ -0,0 +1,5 @@
+
+Here we check that `__file__` is provided:
+
+ >>> type(__file__)
+ <type 'str'>