Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3071)

Unified Diff: Doc/library/doctest.rst

Issue 815042: cross platform failure and silly test in doctest Base URL: http://svn.python.org/projects/python/trunk/
Patch Set: Created 15 years ago , Downloaded from: http://bugs.python.org/file16722/6703.silly.abspath.test.diff
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/doctest.py » ('j') | Lib/doctest.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Doc/library/doctest.rst
===================================================================
--- Doc/library/doctest.rst (revision 79554)
+++ Doc/library/doctest.rst (working copy)
@@ -809,9 +809,9 @@
* If *module_relative* is ``True`` (the default), then *filename* specifies an
OS-independent module-relative path. By default, this path is relative to the
calling module's directory; but if the *package* argument is specified, then it
- is relative to that package. To ensure OS-independence, *filename* should use
- ``/`` characters to separate path segments, and may not be an absolute path
- (i.e., it may not begin with ``/``).
+ is relative to that package. To ensure that doctests run on every machine, a
+ :exc:`ValueError` is raised if an absolute path is used when *module_relative*
+ is set.
* If *module_relative* is ``False``, then *filename* specifies an OS-specific
path. The path may be absolute or relative; relative paths are resolved with
« no previous file with comments | « no previous file | Lib/doctest.py » ('j') | Lib/doctest.py » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b