Skip to content
Snippets Groups Projects
Unverified Commit d3b9134e authored by Shreyan Avigyan's avatar Shreyan Avigyan Committed by GitHub
Browse files

Remove Enum warnings from test_httpservers (GH-25844)

parent 80a2a4ed
Branches
Tags
No related merge requests found
......@@ -259,7 +259,7 @@ def test_send_error(self):
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 @@ def test_head_via_send_error(self):
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment