[packages/python3] - run imap4_host_default_value test with ipv4, so it should work on our vserver builder guests

arekm arekm at pld-linux.org
Mon Aug 5 20:10:15 CEST 2019


commit 1b1a21d480141920b60fe773cf3fa8e61b3e0576
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 5 20:10:05 2019 +0200

    - run imap4_host_default_value test with ipv4, so it should work on our vserver builder guests

 python3-tests.patch | 11 +++++++++++
 python3.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/python3.spec b/python3.spec
index 4ebc77f..f664800 100644
--- a/python3.spec
+++ b/python3.spec
@@ -65,6 +65,7 @@ Patch11:	%{name}-installcompile.patch
 Patch12:        nonexistent_user.patch
 Patch13:	%{name}-no-randomize-tests.patch
 Patch14:	python3-profile-tests.patch
+Patch15:	python3-tests.patch
 URL:		https://www.python.org/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake
@@ -498,6 +499,7 @@ Moduły testowe dla Pythona.
 %patch12 -p1
 %patch13 -p1
 %patch14 -p1
+%patch15 -p1
 
 %{__rm} -r Modules/expat
 
diff --git a/python3-tests.patch b/python3-tests.patch
new file mode 100644
index 0000000..7d19d37
--- /dev/null
+++ b/python3-tests.patch
@@ -0,0 +1,11 @@
+--- Python-3.7.4/Lib/test/test_imaplib.py~	2019-07-08 20:03:50.000000000 +0200
++++ Python-3.7.4/Lib/test/test_imaplib.py	2019-08-05 19:25:53.119629647 +0200
+@@ -73,7 +73,7 @@ class TestImaplib(unittest.TestCase):
+ 
+     def test_imap4_host_default_value(self):
+         # Check whether the IMAP4_PORT is truly unavailable.
+-        with socket.socket() as s:
++        with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
+             try:
+                 s.connect(('', imaplib.IMAP4_PORT))
+                 self.skipTest(
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list