Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej

This commit is contained in:
Martin Panter 2015-11-14 12:46:42 +00:00
parent d226d308a3
commit 19e69c5a20
15 changed files with 111 additions and 16 deletions

View file

@ -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__)