mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
Rename "blacklist" parameter of test.support.check__all__() to "not_exported".
This commit is contained in:
parent
97003466d4
commit
fbf43f051e
20 changed files with 98 additions and 97 deletions
|
@ -391,14 +391,14 @@ class TestSupport(unittest.TestCase):
|
|||
|
||||
def test_check__all__(self):
|
||||
extra = {'tempdir'}
|
||||
blacklist = {'template'}
|
||||
not_exported = {'template'}
|
||||
support.check__all__(self,
|
||||
tempfile,
|
||||
extra=extra,
|
||||
blacklist=blacklist)
|
||||
not_exported=not_exported)
|
||||
|
||||
extra = {'TextTestResult', 'installHandler'}
|
||||
blacklist = {'load_tests', "TestProgram", "BaseTestSuite"}
|
||||
not_exported = {'load_tests', "TestProgram", "BaseTestSuite"}
|
||||
|
||||
support.check__all__(self,
|
||||
unittest,
|
||||
|
@ -407,7 +407,7 @@ class TestSupport(unittest.TestCase):
|
|||
"unittest.main", "unittest.runner",
|
||||
"unittest.signals", "unittest.async_case"),
|
||||
extra=extra,
|
||||
blacklist=blacklist)
|
||||
not_exported=not_exported)
|
||||
|
||||
self.assertRaises(AssertionError, support.check__all__, self, unittest)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue