diff options
| author | Martin Panter <vadmium+py@gmail.com> | 2015-11-14 12:46:42 (GMT) |
|---|---|---|
| committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-14 12:46:42 (GMT) |
| commit | 19e69c5a2067fe6322ead88733ebbca77673010b (patch) | |
| tree | a16cdb8e1d9e80a4c47d8aa0702cc616afb1d3ea /Lib/test/test_logging.py | |
| parent | d226d308a3856e67c654ff3d5924be6d24568388 (diff) | |
| download | cpython-19e69c5a2067fe6322ead88733ebbca77673010b.zip cpython-19e69c5a2067fe6322ead88733ebbca77673010b.tar.gz cpython-19e69c5a2067fe6322ead88733ebbca77673010b.tar.bz2 | |
Issue #23883: Add missing APIs to __all__; patch by Jacek KoĆodziej
Diffstat (limited to 'Lib/test/test_logging.py')
| -rw-r--r-- | Lib/test/test_logging.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 95575bf..9c4344f 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -4159,6 +4159,17 @@ class NTEventLogHandlerTest(BaseTest): msg = 'Record not found in event log, went back %d records' % GO_BACK self.assertTrue(found, msg=msg) + +class MiscTestCase(unittest.TestCase): + def test__all__(self): + blacklist = {'logThreads', 'logMultiprocessing', + 'logProcesses', 'currentframe', + 'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle', + 'Filterer', 'PlaceHolder', 'Manager', 'RootLogger', + 'root'} + support.check__all__(self, logging, blacklist=blacklist) + + # Set the locale to the platform-dependent default. I have no idea # why the test does this, but in any case we save the current locale # first and restore it at the end. @@ -4175,7 +4186,8 @@ def test_main(): RotatingFileHandlerTest, LastResortTest, LogRecordTest, ExceptionTest, SysLogHandlerTest, HTTPHandlerTest, NTEventLogHandlerTest, TimedRotatingFileHandlerTest, - UnixSocketHandlerTest, UnixDatagramHandlerTest, UnixSysLogHandlerTest) + UnixSocketHandlerTest, UnixDatagramHandlerTest, UnixSysLogHandlerTest, + MiscTestCase) if __name__ == "__main__": test_main() |
