We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ea6ae commit 0176ee7Copy full SHA for 0176ee7
Lib/test/test_httplib.py
@@ -411,7 +411,7 @@ def test_invalid_tunnel_host(self):
411
conn = client.HTTPConnection('example.com')
412
conn.set_tunnel(tunnel_host)
413
conn.sock = FakeSocket('')
414
- with self.assertRaisesRegex(ValueError, 'Invalid header'):
+ with self.assertRaisesRegex(ValueError, 'Tunnel host can\'t contain control characters'):
415
conn._tunnel() # Called in .connect()
416
417
def test_headers_debuglevel(self):
0 commit comments