summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-03-02 09:53:51 (GMT)
committerGitHub <noreply@github.com>2018-03-02 09:53:51 (GMT)
commitb21d155f57d284aecf9092a9bd24258293965c2f (patch)
tree3bf7797282fa3d3fc48e668214ae5f5c6bce1dff /Doc/library
parentbf63e8d55fd2853df3bb99d66de7f428107aadb3 (diff)
downloadcpython-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.rst7
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
==============================================================================