mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23883: Add test.support.check__all__() and test gettext.__all__
Patches by Jacek Kołodziej.
This commit is contained in:
parent
63c1ebb67b
commit
d226d308a3
5 changed files with 132 additions and 0 deletions
|
@ -312,6 +312,28 @@ class TestSupport(unittest.TestCase):
|
|||
self.OtherClass, self.RefClass, ignore=ignore)
|
||||
self.assertEqual(set(), missing_items)
|
||||
|
||||
def test_check__all__(self):
|
||||
extra = {'tempdir'}
|
||||
blacklist = {'template'}
|
||||
support.check__all__(self,
|
||||
tempfile,
|
||||
extra=extra,
|
||||
blacklist=blacklist)
|
||||
|
||||
extra = {'TextTestResult', 'installHandler'}
|
||||
blacklist = {'load_tests', "TestProgram", "BaseTestSuite"}
|
||||
|
||||
support.check__all__(self,
|
||||
unittest,
|
||||
("unittest.result", "unittest.case",
|
||||
"unittest.suite", "unittest.loader",
|
||||
"unittest.main", "unittest.runner",
|
||||
"unittest.signals"),
|
||||
extra=extra,
|
||||
blacklist=blacklist)
|
||||
|
||||
self.assertRaises(AssertionError, support.check__all__, self, unittest)
|
||||
|
||||
# XXX -follows a list of untested API
|
||||
# make_legacy_pyc
|
||||
# is_resource_enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue