From ee08c4bfee37f96d9777feb5d26d4068e714ad58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 16 Oct 2019 13:43:04 +0200 Subject: [PATCH] - use ipv4 socket for connection (as builders don't have v6 network) --- python3-tests.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python3-tests.patch b/python3-tests.patch index 7d19d37..1272d4d 100644 --- a/python3-tests.patch +++ b/python3-tests.patch @@ -9,3 +9,12 @@ try: s.connect(('', imaplib.IMAP4_PORT)) self.skipTest( +@@ -84,7 +84,7 @@ class TestImaplib(unittest.TestCase): + # This is the exception that should be raised. + expected_errnos = support.get_socket_conn_refused_errs() + with self.assertRaises(OSError) as cm: +- imaplib.IMAP4() ++ imaplib.IMAP4('0.0.0.0') + self.assertIn(cm.exception.errno, expected_errnos) + + -- 2.44.0