summaryrefslogtreecommitdiffstats
path: root/Doc/library/test.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-08-17 05:20:40 (GMT)
committerGitHub <noreply@github.com>2020-08-17 05:20:40 (GMT)
commitfbf43f051e7bf479709e122efa4b6edd4b09d4df (patch)
tree7fc63b08b52ae22d22885debb9908a37109711f7 /Doc/library/test.rst
parent97003466d481670b9234b343319c6e02f9c5d732 (diff)
downloadcpython-fbf43f051e7bf479709e122efa4b6edd4b09d4df.zip
cpython-fbf43f051e7bf479709e122efa4b6edd4b09d4df.tar.gz
cpython-fbf43f051e7bf479709e122efa4b6edd4b09d4df.tar.bz2
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
Rename "blacklist" parameter of test.support.check__all__() to "not_exported".
Diffstat (limited to 'Doc/library/test.rst')
-rw-r--r--Doc/library/test.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index cd05ef0..6495b48 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -878,7 +878,7 @@ The :mod:`test.support` module defines the following functions:
missing.
-.. function:: check__all__(test_case, module, name_of_module=None, extra=(), blacklist=())
+.. function:: check__all__(test_case, module, name_of_module=None, extra=(), not_exported=())
Assert that the ``__all__`` variable of *module* contains all public names.
@@ -895,8 +895,8 @@ The :mod:`test.support` module defines the following functions:
detected as "public", like objects without a proper ``__module__``
attribute. If provided, it will be added to the automatically detected ones.
- The *blacklist* argument can be a set of names that must not be treated as part of
- the public API even though their names indicate otherwise.
+ The *not_exported* argument can be a set of names that must not be treated
+ as part of the public API even though their names indicate otherwise.
Example use::
@@ -912,10 +912,10 @@ The :mod:`test.support` module defines the following functions:
class OtherTestCase(unittest.TestCase):
def test__all__(self):
extra = {'BAR_CONST', 'FOO_CONST'}
- blacklist = {'baz'} # Undocumented name.
+ not_exported = {'baz'} # Undocumented name.
# bar imports part of its API from _bar.
support.check__all__(self, bar, ('bar', '_bar'),
- extra=extra, blacklist=blacklist)
+ extra=extra, not_exported=not_exported)
.. versionadded:: 3.6