[Python-checkins] cpython (3.5): Issues #25232, #24657: Use new enum status to match rest of tests

martin.panter python-checkins at python.org
Sat Oct 3 02:44:33 EDT 2015


https://hg.python.org/cpython/rev/88918f2a54df
changeset:   98512:88918f2a54df
branch:      3.5
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sat Oct 03 06:07:22 2015 +0000
summary:
  Issues #25232, #24657: Use new enum status to match rest of tests

files:
  Lib/test/test_httpservers.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -627,14 +627,14 @@
     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))
 
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list