[issue16382] Better warnings exception for bad category

2014-07-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Phil. -- assignee: -> berker.peksag nosy: +r.david.murray resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> enhancement ___ Python tracker

[issue16382] Better warnings exception for bad category

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4a86fe52006 by Berker Peksag in branch 'default': Issue #16382: Improve exception message of warnings.warn() for bad category. http://hg.python.org/cpython/rev/c4a86fe52006 -- nosy: +python-dev ___ Pytho

[issue16382] Better warnings exception for bad category

2014-06-24 Thread Berker Peksag
Berker Peksag added the comment: Here's a new patch addressing Ezio's Rietveld comment. I've also used assertRaisesRegex instead of assertRaises in tests. -- nosy: +berker.peksag Added file: http://bugs.python.org/file35772/issue16382_v5.diff ___ Pyt

[issue16382] Better warnings exception for bad category

2014-01-23 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16382] Better warnings exception for bad category

2013-03-04 Thread Phil Elson
Phil Elson added the comment: Ok. I think I've done all of the actions from the reviews. I'm not sure if I should remove the old patches or not? Thanks, -- Added file: http://bugs.python.org/file29304/pelson_warnings_fix_4.diff ___ Python tracker <

[issue16382] Better warnings exception for bad category

2012-11-22 Thread Phil Elson
Changes by Phil Elson : Added file: http://bugs.python.org/file28072/pelson_warnings_fix_3.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue16382] Better warnings exception for bad category

2012-11-20 Thread Phil Elson
Changes by Phil Elson : Added file: http://bugs.python.org/file28053/pelson_warnings_fix_2.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue16382] Better warnings exception for bad category

2012-11-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16382] Better warnings exception for bad category

2012-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16382] Better warnings exception for bad category

2012-11-01 Thread Phil Elson
New submission from Phil Elson: When passing an invalid Warning subclasses to the warnings.warn function, a bare issubclass exception is raised: >>> import warnings >>> warnings.warn('hello world', 'not a valid warning type') Traceback (most recent call last): File "", line 1, in TypeError: