[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

Éric Araujo report at bugs.python.org
Fri Jun 10 18:19:09 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

When regrtest tells me that os.environ was modified by test_packaging, it’s very hard to find which test is responsible.  The -vv output is hard to read: it prints four dictionaries, which I have to visually delineate, copy, paste, pretty-print and diff to find what’s changed.  Then I edit the source code of regrtest so that it fails earlier, or I add a debug print in the packaging.util code that touches os.environ.

I’d like regrtest to tell me what exactly was changed, and where.  For the first request, I think each checked object could use a type-specific method, for example _compare_dict would see if any value was changed and if keys are different, and print only that info.

----------
components: Tests
messages: 138101
nosy: eric.araujo
priority: normal
severity: normal
status: open
title: regrtest checks (os.environ, sys.path, etc.) are hard to use
versions: Python 3.3

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


More information about the Python-bugs-list mailing list