[New-bugs-announce] [issue25607] test_distutils provokes unexpected output in test_shutil

Serhiy Storchaka report at bugs.python.org
Thu Nov 12 07:34:45 EST 2015


New submission from Serhiy Storchaka:

test_distutils changes global logging level for distutils. This affects test_shutil.

In Python 2.7:

$ ./python -m test.regrtest test_distutils test_shutil
[1/2] test_distutils
[2/2] test_shutil
test test_shutil produced unexpected output:
**********************************************************************
zip -q -r archive2.zip dist

**********************************************************************
1 test OK.
1 test failed:
    test_shutil

Python 3 testing is more lenient, but produces unexpected output too.

The global logging level is changed in Distribution.parse_command_line() by calling log.set_verbosity().

Proposed patch restores the value of the global logging level in tests that change it.

----------
components: Distutils, Tests
files: test_distutils_restore_log_level.patch
keywords: patch
messages: 254529
nosy: dstufft, eric.araujo, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: test_distutils provokes unexpected output in test_shutil
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41021/test_distutils_restore_log_level.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25607>
_______________________________________


More information about the New-bugs-announce mailing list