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: test_cgi is giving deprecation warnings
Type: behavior Stage:
Components: Tests Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: facundobatista Nosy List: benjamin.peterson, facundobatista
Priority: normal Keywords:

Created on 2008-09-09 01:17 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg72814 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-09 01:17
test_cgi
/temp/python/py3k/Lib/cgi.py:166: DeprecationWarning: cgi.parse_qs is
deprecated, use urllib.parse.parse_qs instead
  DeprecationWarning)
/temp/python/py3k/Lib/cgi.py:172: DeprecationWarning: cgi.parse_qsl is
deprecated, use urllib.parse.parse_qs instead
  DeprecationWarning)
msg72815 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2008-09-09 01:35
My fault, I'm exercising functions that have to raise a deprecation
warning... should I remove these tests?

Thank you!
msg72816 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-09 01:36
No, just surround the tests in the warnings.catch_warning context
manager and filter out the DeprecationWarnings.
msg72819 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2008-09-09 02:44
Fixed in r66326. Thank you!
History
Date User Action Args
2022-04-11 14:56:38adminsetgithub: 48058
2008-09-09 02:44:17facundobatistasetstatus: open -> closed
resolution: fixed
messages: + msg72819
2008-09-09 01:36:40benjamin.petersonsetmessages: + msg72816
2008-09-09 01:35:28facundobatistasetmessages: + msg72815
2008-09-09 01:17:54benjamin.petersoncreate