Skip to content

Commit 4d8de11

Browse files
committed
refactoring test
1 parent 30511e0 commit 4d8de11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_httplib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,8 +2392,9 @@ def test_tunnel_debuglog(self):
23922392

23932393
def test_proxy_response_headers(self):
23942394
expected_header = ('X-Dummy', '1')
2395-
response_text = 'HTTP/1.0 200 OK\r\n{}: {}\r\n\r\n'.format(
2396-
*expected_header
2395+
response_text = (
2396+
'HTTP/1.0 200 OK\r\n'
2397+
'{0}\r\n\r\n'.format(':'.join(expected_header))
23972398
)
23982399

23992400
self.conn._create_connection = self._create_connection(response_text)

0 commit comments

Comments
 (0)