mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej
This commit is contained in:
parent
d226d308a3
commit
19e69c5a20
15 changed files with 111 additions and 16 deletions
|
@ -16,6 +16,7 @@ from io import StringIO
|
|||
from test import support
|
||||
|
||||
|
||||
import optparse
|
||||
from optparse import make_option, Option, \
|
||||
TitledHelpFormatter, OptionParser, OptionGroup, \
|
||||
SUPPRESS_USAGE, OptionError, OptionConflictError, \
|
||||
|
@ -1650,6 +1651,12 @@ class TestParseNumber(BaseTest):
|
|||
"option -l: invalid integer value: '0x12x'")
|
||||
|
||||
|
||||
class MiscTestCase(unittest.TestCase):
|
||||
def test__all__(self):
|
||||
blacklist = {'check_builtin', 'AmbiguousOptionError', 'NO_DEFAULT'}
|
||||
support.check__all__(self, optparse, blacklist=blacklist)
|
||||
|
||||
|
||||
def test_main():
|
||||
support.run_unittest(__name__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue