Skip to content

Commit e60b9a0

Browse files
jdKyle-Verhoog
andauthored
fix(profiling): use errno alias, not value (#1374)
Co-authored-by: Kyle Verhoog <[email protected]>
1 parent f85cc44 commit e60b9a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/profiling/exporter/test_http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- encoding: utf-8 -*-
22
import collections
3+
import errno
34
import email.parser
45
import platform
56
import socket
@@ -164,7 +165,7 @@ def test_export_server_down():
164165
exp.export(test_pprof.TEST_EVENTS, 0, 1)
165166
e = t.exception
166167
assert isinstance(e, (IOError, OSError))
167-
assert e.errno in (61, 99)
168+
assert e.errno == errno.ECONNREFUSED
168169

169170

170171
def test_export_timeout(endpoint_test_timeout_server):

0 commit comments

Comments
 (0)