Skip to content

Commit 1b1a21d

Browse files
committed
- run imap4_host_default_value test with ipv4, so it should work on our vserver builder guests
1 parent bebf9cf commit 1b1a21d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎python3-tests.patch‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Python-3.7.4/Lib/test/test_imaplib.py~ 2019-07-08 20:03:50.000000000 +0200
2+
+++ Python-3.7.4/Lib/test/test_imaplib.py 2019-08-05 19:25:53.119629647 +0200
3+
@@ -73,7 +73,7 @@ class TestImaplib(unittest.TestCase):
4+
5+
def test_imap4_host_default_value(self):
6+
# Check whether the IMAP4_PORT is truly unavailable.
7+
- with socket.socket() as s:
8+
+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
9+
try:
10+
s.connect(('', imaplib.IMAP4_PORT))
11+
self.skipTest(

‎python3.spec‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Patch11: %{name}-installcompile.patch
6565
Patch12: nonexistent_user.patch
6666
Patch13: %{name}-no-randomize-tests.patch
6767
Patch14: python3-profile-tests.patch
68+
Patch15: python3-tests.patch
6869
URL: https://www.python.org/
6970
BuildRequires: autoconf >= 2.65
7071
BuildRequires: automake
@@ -498,6 +499,7 @@ Moduły testowe dla Pythona.
498499
%patch12 -p1
499500
%patch13 -p1
500501
%patch14 -p1
502+
%patch15 -p1
501503

502504
%{__rm} -r Modules/expat
503505

0 commit comments

Comments
 (0)