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 f85cc44 commit e60b9a0Copy full SHA for e60b9a0
tests/profiling/exporter/test_http.py
@@ -1,5 +1,6 @@
1
# -*- encoding: utf-8 -*-
2
import collections
3
+import errno
4
import email.parser
5
import platform
6
import socket
@@ -164,7 +165,7 @@ def test_export_server_down():
164
165
exp.export(test_pprof.TEST_EVENTS, 0, 1)
166
e = t.exception
167
assert isinstance(e, (IOError, OSError))
- assert e.errno in (61, 99)
168
+ assert e.errno == errno.ECONNREFUSED
169
170
171
def test_export_timeout(endpoint_test_timeout_server):
0 commit comments