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 df3a560 commit a8c23a9Copy full SHA for a8c23a9
test/test_http_errors.py
@@ -14,7 +14,8 @@ def test_get_bad_url(sess):
14
select net.http_get('localhost:{wrong_port}');
15
"""
16
))
17
- assert r"Couldn\'t resolve proxy name" in str(execinfo)
+
18
+ assert r"resolve proxy name" in str(execinfo)
19
20
21
def test_bad_post(sess):
@@ -91,7 +92,9 @@ def test_it_keeps_working_after_many_connection_refused(sess):
91
92
93
)).fetchone()
94
- assert error_msg == "Couldn't connect to server"
95
+ # newer curl version changes the error message
96
+ expected = ("Couldn't connect to server", "Could not connect to server")
97
+ assert error_msg in expected
98
assert count == 10
99
100
(request_id,) = sess.execute(text(
0 commit comments