[New-bugs-announce] [issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

Brett Cannon report at bugs.python.org
Tue Aug 19 20:35:47 CEST 2008


New submission from Brett Cannon <brett at python.org>:

Since most UNIX distros don't ship Python's test directory,
test.test_support.catch_warning() needs to be moved to the 'warnings'
directory so it can be used to suppress warnings in modules outside the
'test' package.

The default for 'record' will change to False so it is less
test-oriented. The name might change as well since it is more about
saving the state of 'warnings' then actually catching an exception,
although having it return an object representation of a warning makes
the current name make sense.

----------
assignee: brett.cannon
components: Library (Lib)
messages: 71459
nosy: brett.cannon
priority: critical
severity: normal
status: open
title: Move test.test_suport.catch_warning() to the 'warnings' module
type: behavior
versions: Python 2.6, Python 3.0

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


More information about the New-bugs-announce mailing list