This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: warnings.py does not define _test()
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: aahz, tim.peters
Priority: normal Keywords:

Created on 2004-03-16 05:59 by aahz, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20242 - (view) Author: Aahz (aahz) * (Python triager) Date: 2004-03-16 05:59
At the bottom of warnings.py, there's a call to _test() if run as a
script.  However, _test() is neither defined nor imported.
msg20243 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-03-21 17:16
Logged In: YES 
user_id=31435

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

Lib/warnings.py; new revision: 1.23
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40037
2004-03-16 05:59:44aahzcreate