[New-bugs-announce] [issue6293] Have regrtest.py echo back sys.flags

Collin Winter report at bugs.python.org
Tue Jun 16 19:35:31 CEST 2009


New submission from Collin Winter <collinw at gmail.com>:

This patch makes regrtest.py echo back the contents of sys.flags at the 
beginning of a test run. Unladen Swallow has found this useful for 
verifying that the regrtest.py settings in the Makefile and in our 
Buildbot configs are interacting as expected.

Example output:
$ PYTHONOPTIMIZE=2 ./python.exe -OO Lib/test/regrtest.py
Testing with flags: sys.flags(debug=0, py3k_warning=0, 
division_warning=0, division_new=0, inspect=0, interactive=0, 
optimize=2, dont_write_bytecode=0, no_user_site=0, no_site=0, 
ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0)
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
[snip]
$

----------
components: Tests
files: regrtest_flags.patch
keywords: easy, patch
messages: 89436
nosy: collinwinter
severity: normal
stage: patch review
status: open
title: Have regrtest.py echo back sys.flags
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file14310/regrtest_flags.patch

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


More information about the New-bugs-announce mailing list