summaryrefslogtreecommitdiff
path: root/Lib/test/test_cgi.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-04-29 11:36:04 +0900
committerGitHub <noreply@github.com>2021-04-29 11:36:04 +0900
commite52ab42cedd2a5ef4c3c1a47d0cf96a8f06d051f (patch)
tree6c10f217b202ed648c88eb2d23eeb4ba3088eb64 /Lib/test/test_cgi.py
parenta69256527f93d2aa32e76658deab829e324d97b6 (diff)
downloadcpython-git-e52ab42cedd2a5ef4c3c1a47d0cf96a8f06d051f.tar.gz
bpo-41139: Deprecate `cgi.log()` (GH-25625)
Diffstat (limited to 'Lib/test/test_cgi.py')
-rw-r--r--Lib/test/test_cgi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
index 239d97589c..c1b893d3fe 100644
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -6,6 +6,7 @@ import unittest
from collections import namedtuple
from io import StringIO, BytesIO
from test import support
+from test.support import warnings_helper
class HackedSysModule:
# The regression test will have real values in sys.argv, which
@@ -220,6 +221,7 @@ Content-Length: 3
else:
self.assertEqual(fs.getvalue(key), expect_val[0])
+ @warnings_helper.ignore_warnings(category=DeprecationWarning)
def test_log(self):
cgi.log("Testing")