diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-12 17:47:38 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-12 17:47:38 (GMT) |
| commit | d5c075143b9fc133b206229c6d86cd6a0c46364a (patch) | |
| tree | 212e39282724a9eafa52365cb8fe83ded84dcb32 /Lib/distutils/tests/test_dist.py | |
| parent | 30c49cb17fab6538c8b25ddb19c4f0ab04097eff (diff) | |
| parent | 2f85555531c79184767d4954f20e310beda99421 (diff) | |
| download | cpython-d5c075143b9fc133b206229c6d86cd6a0c46364a.zip cpython-d5c075143b9fc133b206229c6d86cd6a0c46364a.tar.gz cpython-d5c075143b9fc133b206229c6d86cd6a0c46364a.tar.bz2 | |
Issue #25607: Restore old distutils logging threshold after running tests that
parse command line arguments.
Diffstat (limited to 'Lib/distutils/tests/test_dist.py')
| -rw-r--r-- | Lib/distutils/tests/test_dist.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_dist.py b/Lib/distutils/tests/test_dist.py index b7fd3fb..1f104ce 100644 --- a/Lib/distutils/tests/test_dist.py +++ b/Lib/distutils/tests/test_dist.py @@ -13,6 +13,7 @@ from distutils.cmd import Command from test.support import TESTFN, captured_stdout, run_unittest from distutils.tests import support +from distutils import log class test_dist(Command): @@ -405,6 +406,7 @@ class MetadataTestCase(support.TempdirManager, support.EnvironGuard, def test_show_help(self): # smoke test, just makes sure some help is displayed + self.addCleanup(log.set_threshold, log._global_log.threshold) dist = Distribution() sys.argv = [] dist.help = 1 |
