diff -r 3a57eafd8401 Lib/cgi.py --- a/Lib/cgi.py Tue May 24 09:15:14 2016 +0300 +++ b/Lib/cgi.py Tue May 24 22:02:54 2016 +0200 @@ -45,7 +45,7 @@ __all__ = ["MiniFieldStorage", "FieldStorage", "parse", "parse_qs", "parse_qsl", "parse_multipart", - "parse_header", "print_exception", "print_environ", + "parse_header", "test", "print_exception", "print_environ", "print_form", "print_directory", "print_arguments", "print_environ_usage", "escape"] diff -r 3a57eafd8401 Lib/test/test_cgi.py --- a/Lib/test/test_cgi.py Tue May 24 09:15:14 2016 +0300 +++ b/Lib/test/test_cgi.py Tue May 24 22:02:54 2016 +0200 @@ -7,6 +7,7 @@ import warnings from collections import namedtuple from io import StringIO, BytesIO +from test import support class HackedSysModule: # The regression test will have real values in sys.argv, which @@ -529,5 +530,13 @@ --AaB03x-- """ + +class MiscTestCase(unittest.TestCase): + def test__all__(self): + blacklist = {"logfile", "logfp", "initlog", "dolog", "nolog", + "closelog", "log", "maxlen", "valid_boundary"} + support.check__all__(self, cgi, blacklist=blacklist) + + if __name__ == '__main__': unittest.main()