diff options
author | Brett Cannon <brett@python.org> | 2022-04-09 00:15:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 00:15:35 (GMT) |
commit | cd29bd13ef1fe18970c5d43b66c545dd03117cb9 (patch) | |
tree | cc111c2bf79956a6a8680f53500662cb2511081b /Lib/test/test_cgi.py | |
parent | 1c8b3b5d66a629258f1db16939b996264a8b9c37 (diff) | |
download | cpython-cd29bd13ef1fe18970c5d43b66c545dd03117cb9.zip cpython-cd29bd13ef1fe18970c5d43b66c545dd03117cb9.tar.gz cpython-cd29bd13ef1fe18970c5d43b66c545dd03117cb9.tar.bz2 |
bpo-47061: deprecate cgi and cgitb (GH-32410)
Part of PEP 594.
Diffstat (limited to 'Lib/test/test_cgi.py')
-rw-r--r-- | Lib/test/test_cgi.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index 06762f8..24486e4 100644 --- a/Lib/test/test_cgi.py +++ b/Lib/test/test_cgi.py @@ -1,4 +1,3 @@ -import cgi import os import sys import tempfile @@ -8,6 +7,9 @@ from io import StringIO, BytesIO from test import support from test.support import warnings_helper +cgi = warnings_helper.import_deprecated("cgi") + + class HackedSysModule: # The regression test will have real values in sys.argv, which # will completely confuse the test of the cgi module |