Skip to content

Commit

Permalink
refactoring test
Browse files Browse the repository at this point in the history
  • Loading branch information
nametkin committed Apr 28, 2023
1 parent 30511e0 commit 4d8de11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/test_httplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2392,8 +2392,9 @@ def test_tunnel_debuglog(self):

def test_proxy_response_headers(self):
expected_header = ('X-Dummy', '1')
response_text = 'HTTP/1.0 200 OK\r\n{}: {}\r\n\r\n'.format(
*expected_header
response_text = (
'HTTP/1.0 200 OK\r\n'
'{0}\r\n\r\n'.format(':'.join(expected_header))
)

self.conn._create_connection = self._create_connection(response_text)
Expand Down

0 comments on commit 4d8de11

Please sign in to comment.