summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Wozniak <dan@woz.io>2018-10-02 15:26:48 -0700
committerMatěj Cepl <mcepl@cepl.eu>2018-10-03 12:48:53 +0200
commit1da650b1b858bba5d63446e9b3bb0abe811a53fb (patch)
treefb3cab1d9d4b6ebbaa63f88079787d09a8537245 /tests
parentcc627d37f9e75e028c61004d52f4466e43d0169b (diff)
downloadm2crypto-1da650b1b858bba5d63446e9b3bb0abe811a53fb.tar.gz
Fix test_26_compat on OSX
Diffstat (limited to 'tests')
-rw-r--r--tests/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index e3e1e67..f3e5514 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1189,7 +1189,7 @@ class FtpslibTestCase(unittest.TestCase):
def test_26_compat(self):
f = ftpslib.FTP_TLS()
# 2.6 used to raise AttributeError:
- with self.assertRaises(socket.gaierror):
+ with self.assertRaises((socket.gaierror, socket.error,)):
f.connect('no-such-host-dfgHJK56789', 990)