Brett Cannon <[EMAIL PROTECTED]> added the comment: The attached patch has WarningsRecorder raise AttributeError when there is no recorded attribute and yet one tries to access warnings attributes.
And just so you know, JP, make sure to use keyword arguments when calling catch_warnings() (in case you didn't notice the note in the docs). In Py3K they are keyword-only. ---------- assignee: brett.cannon -> keywords: +needs review, patch Added file: http://bugs.python.org/file11382/catch_warnings_atts.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com