From: Shreyan Avigyan Date: Mon, 3 May 2021 19:27:47 +0000 (+0530) Subject: Remove Enum warnings from test_httpservers (GH-25844) X-Git-Tag: v3.10.0b1~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3b9134ebb40bdb01ff52a37515c7c96970c9a0b;p=thirdparty%2FPython%2Fcpython.git Remove Enum warnings from test_httpservers (GH-25844) --- diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 12574a602519..6b17817b22bf 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -259,7 +259,7 @@ class BaseHTTPServerTestCase(BaseTestCase): for code in (HTTPStatus.NO_CONTENT, HTTPStatus.NOT_MODIFIED, HTTPStatus.PROCESSING, HTTPStatus.RESET_CONTENT, HTTPStatus.SWITCHING_PROTOCOLS): - self.con.request('SEND_ERROR', '/{}'.format(code)) + self.con.request('SEND_ERROR', '/{:d}'.format(code)) res = self.con.getresponse() self.assertEqual(code, res.status) self.assertEqual(None, res.getheader('Content-Length')) @@ -276,7 +276,7 @@ class BaseHTTPServerTestCase(BaseTestCase): for code in (HTTPStatus.OK, HTTPStatus.NO_CONTENT, HTTPStatus.NOT_MODIFIED, HTTPStatus.RESET_CONTENT, HTTPStatus.SWITCHING_PROTOCOLS): - self.con.request('HEAD', '/{}'.format(code)) + self.con.request('HEAD', '/{:d}'.format(code)) res = self.con.getresponse() self.assertEqual(code, res.status) if code == HTTPStatus.OK: