]> git.pld-linux.org Git - packages/python3.git/blobdiff - python3-tests.patch
- use ipv4 socket for connection (as builders don't have v6 network)
[packages/python3.git] / python3-tests.patch
index 7d19d373c03555db53db415debe673db1376deb8..1272d4d4b1c4a2e732753f611dc1ad185c6769f3 100644 (file)
@@ -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)
This page took 0.026267 seconds and 4 git commands to generate.