[ python-Bugs-917108 ] warnings.py does not define _test()

SourceForge.net noreply at sourceforge.net
Sun Mar 21 12:16:50 EST 2004


Bugs item #917108, was opened at 2004-03-16 00:59
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=917108&group_id=5470

Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Aahz (aahz)
Assigned to: Nobody/Anonymous (nobody)
Summary: warnings.py does not define _test()

Initial Comment:
At the bottom of warnings.py, there's a call to _test() if run as a
script.  However, _test() is neither defined nor imported.


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2004-03-21 12:16

Message:
Logged In: YES 
user_id=31435

Fixed, by removing the entire __name__ == '__main__' block.

Lib/warnings.py; new revision: 1.23

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=917108&group_id=5470



More information about the Python-bugs-list mailing list