From a54a11dca0f1961680cf0db17a32a42e2d5ea0c3 Mon Sep 17 00:00:00 2001 From: hackrush Date: Mon, 6 May 2019 01:15:49 +0530 Subject: [PATCH] Making tests work on OS X --- torba/rpc/socks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torba/rpc/socks.py b/torba/rpc/socks.py index 776f86a29..64bfe9866 100644 --- a/torba/rpc/socks.py +++ b/torba/rpc/socks.py @@ -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