Skip to content

Commit 0176ee7

Browse files
authored
Update test_httplib.py
1 parent b7ea6ae commit 0176ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def test_invalid_tunnel_host(self):
411411
conn = client.HTTPConnection('example.com')
412412
conn.set_tunnel(tunnel_host)
413413
conn.sock = FakeSocket('')
414-
with self.assertRaisesRegex(ValueError, 'Invalid header'):
414+
with self.assertRaisesRegex(ValueError, 'Tunnel host can\'t contain control characters'):
415415
conn._tunnel() # Called in .connect()
416416

417417
def test_headers_debuglevel(self):

0 commit comments

Comments
 (0)