Making tests work on OS X

This commit is contained in:
hackrush 2019-05-06 01:15:49 +05:30 committed by Lex Berezhny
parent e7beb6b1a7
commit a54a11dca0

View file

@ -322,7 +322,7 @@ class SOCKSProxy(object):
return sock
except Exception as e:
# Don't close - see https://github.com/kyuupichan/aiorpcX/issues/8
if sys.platform.startswith('linux'):
if sys.platform.startswith('linux') or sys.platform == "darwin":
sock.close()
return e