diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-03-02 09:53:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 09:53:51 (GMT) |
commit | b21d155f57d284aecf9092a9bd24258293965c2f (patch) | |
tree | 3bf7797282fa3d3fc48e668214ae5f5c6bce1dff /Doc/library | |
parent | bf63e8d55fd2853df3bb99d66de7f428107aadb3 (diff) | |
download | cpython-b21d155f57d284aecf9092a9bd24258293965c2f.zip cpython-b21d155f57d284aecf9092a9bd24258293965c2f.tar.gz cpython-b21d155f57d284aecf9092a9bd24258293965c2f.tar.bz2 |
bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/test.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index a366fe2..6041f52 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -1293,6 +1293,13 @@ The :mod:`test.support` module defines the following classes: Class for logging support. +.. class:: FakePath(path) + + Simple :term:`path-like object`. It implements the :meth:`__fspath__` + method which just returns the *path* argument. If *path* is an exception, + it will be raised in :meth:`!__fspath__`. + + :mod:`test.support.script_helper` --- Utilities for the Python execution tests ============================================================================== |