diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-08 01:40:34 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-08 01:40:34 (GMT) |
commit | 0494c2ae7f6a347590d66bb4fe7980dc0dc9ccda (patch) | |
tree | 68a893905963131f681077d768c51800f4518744 /Doc | |
parent | 21101f7038331984eee88fb6f876a3c6e2c3dfbb (diff) | |
download | cpython-0494c2ae7f6a347590d66bb4fe7980dc0dc9ccda.zip cpython-0494c2ae7f6a347590d66bb4fe7980dc0dc9ccda.tar.gz cpython-0494c2ae7f6a347590d66bb4fe7980dc0dc9ccda.tar.bz2 |
Close #18952: correctly download test support data
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/test.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index bce0f64..c1270f4 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -263,12 +263,15 @@ The :mod:`test.support` module defines the following functions: Used when tests are executed by :mod:`test.regrtest`. -.. function:: findfile(filename) +.. function:: findfile(filename, subdir=None) Return the path to the file named *filename*. If no match is found *filename* is returned. This does not equal a failure since it could be the path to the file. + Setting *subdir* indicates a relative path to use to find the file + rather than looking directly in the path directories. + .. function:: run_unittest(\*classes) |