[packages/python3] - use ipv4 socket for connection (as builders don't have v6 network)

arekm arekm at pld-linux.org
Wed Oct 16 13:43:19 CEST 2019


commit ee08c4bfee37f96d9777feb5d26d4068e714ad58
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 16 13:43:04 2019 +0200

    - 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)
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/ee08c4bfee37f96d9777feb5d26d4068e714ad58



More information about the pld-cvs-commit mailing list