diff options
author | Gregory P. Smith <greg@krypto.org> | 2015-04-14 20:26:06 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2015-04-14 20:26:06 (GMT) |
commit | 4e72cceb628010b5f30dce7a2883cda92ed61393 (patch) | |
tree | 5a35eb4a268eed10f58089fdda43d16d841563c6 /Doc | |
parent | 1bef9075b86512ec618b96f6f3a22353154f26b7 (diff) | |
download | cpython-4e72cceb628010b5f30dce7a2883cda92ed61393.zip cpython-4e72cceb628010b5f30dce7a2883cda92ed61393.tar.gz cpython-4e72cceb628010b5f30dce7a2883cda92ed61393.tar.bz2 |
issue9859: Document test.support.detect_api_mismatch() and simplify its test.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/test.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 974909e..029f930 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -568,6 +568,15 @@ The :mod:`test.support` module defines the following functions: def load_tests(*args): return load_package_tests(os.path.dirname(__file__), *args) +.. function:: detect_api_mismatch(ref_api, other_api, *, ignore=()): + + Returns the set of attributes, functions or methods of `ref_api` not + found on `other_api`, except for a defined list of items to be + ignored in this check specified in `ignore`. + + By default this skips private attributes beginning with '_' but + includes all magic methods, i.e. those starting and ending in '__'. + The :mod:`test.support` module defines the following classes: |