Skip to content

Commit 63da6e5

Browse files
author
Nametkin
committed
refactoring test
1 parent 14a9592 commit 63da6e5

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

22462246
def test_proxy_response_headers(self):
22472247
expected_header = ('X-Dummy', '1')
2248-
response_text = 'HTTP/1.0 200 OK\r\n{}: {}\r\n\r\n'.format(
2249-
*expected_header
2248+
response_text = (
2249+
'HTTP/1.0 200 OK\r\n'
2250+
'{0}\r\n\r\n'.format(':'.join(expected_header))
22502251
)
22512252

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

0 commit comments

Comments
 (0)