summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httpservers.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-10-03 06:07:22 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-10-03 06:07:22 (GMT)
commiteb1fee935365edbf8f35520d40bbcd999ef5d964 (patch)
tree9c1fe025b1a258c83b2f0f6706fa8e4cd2a03a89 /Lib/test/test_httpservers.py
parent56b76d25dda22ed4d0a66b50e914920a4791f664 (diff)
downloadcpython-eb1fee935365edbf8f35520d40bbcd999ef5d964.zip
cpython-eb1fee935365edbf8f35520d40bbcd999ef5d964.tar.gz
cpython-eb1fee935365edbf8f35520d40bbcd999ef5d964.tar.bz2
Issues #25232, #24657: Use new enum status to match rest of tests
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r--Lib/test/test_httpservers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 50244c6..d4c8eab 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -627,14 +627,14 @@ class CGIHTTPServerTestCase(BaseTestCase):
def test_query_with_multiple_question_mark(self):
res = self.request('/cgi-bin/file4.py?a=b?c=d')
self.assertEqual(
- (b'a=b?c=d' + self.linesep, 'text/html', 200),
+ (b'a=b?c=d' + self.linesep, 'text/html', HTTPStatus.OK),
(res.read(), res.getheader('Content-type'), res.status))
def test_query_with_continuous_slashes(self):
res = self.request('/cgi-bin/file4.py?k=aa%2F%2Fbb&//q//p//=//a//b//')
self.assertEqual(
(b'k=aa%2F%2Fbb&//q//p//=//a//b//' + self.linesep,
- 'text/html', 200),
+ 'text/html', HTTPStatus.OK),
(res.read(), res.getheader('Content-type'), res.status))