Issue #25607: Restore old distutils logging threshold after running tests that

parse command line arguments.
This commit is contained in:
Serhiy Storchaka 2015-11-12 19:47:14 +02:00
commit 2f85555531
3 changed files with 5 additions and 1 deletions

View file

@ -1037,7 +1037,7 @@ class TestShutil(unittest.TestCase):
# now create another tarball using `tar`
tarball2 = os.path.join(root_dir, 'archive2.tar')
tar_cmd = ['tar', '-cf', 'archive2.tar', base_dir]
with support.change_cwd(root_dir), captured_stdout():
with support.change_cwd(root_dir):
spawn(tar_cmd)
self.assertTrue(os.path.isfile(tarball2))