8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a2a4e commit d3b9134Copy full SHA for d3b9134
Lib/test/test_httpservers.py
@@ -259,7 +259,7 @@ def test_send_error(self):
259
for code in (HTTPStatus.NO_CONTENT, HTTPStatus.NOT_MODIFIED,
260
HTTPStatus.PROCESSING, HTTPStatus.RESET_CONTENT,
261
HTTPStatus.SWITCHING_PROTOCOLS):
262
- self.con.request('SEND_ERROR', '/{}'.format(code))
+ self.con.request('SEND_ERROR', '/{:d}'.format(code))
263
res = self.con.getresponse()
264
self.assertEqual(code, res.status)
265
self.assertEqual(None, res.getheader('Content-Length'))
@@ -276,7 +276,7 @@ def test_head_via_send_error(self):
276
for code in (HTTPStatus.OK, HTTPStatus.NO_CONTENT,
277
HTTPStatus.NOT_MODIFIED, HTTPStatus.RESET_CONTENT,
278
279
- self.con.request('HEAD', '/{}'.format(code))
+ self.con.request('HEAD', '/{:d}'.format(code))
280
281
282
if code == HTTPStatus.OK:
0 commit comments