Skip to content

Commit a4b9f2f

Browse files
Nametkinnametkin
authored andcommitted
refactoring test
1 parent 83253b3 commit a4b9f2f

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
@@ -2296,8 +2296,9 @@ def test_tunnel_debuglog(self):
22962296

22972297
def test_proxy_response_headers(self):
22982298
expected_header = ('X-Dummy', '1')
2299-
response_text = 'HTTP/1.0 200 OK\r\n{}: {}\r\n\r\n'.format(
2300-
*expected_header
2299+
response_text = (
2300+
'HTTP/1.0 200 OK\r\n'
2301+
'{0}\r\n\r\n'.format(':'.join(expected_header))
23012302
)
23022303

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

0 commit comments

Comments
 (0)