summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2021-09-08 01:49:25 +0200
committerSebastian Pipping <sping@gentoo.org>2021-09-08 01:49:25 +0200
commitad0cfc47a51fc05af2ebe14ddfb3b062a1610893 (patch)
treea358f35e72e5ff468bcbcf629b9df81372233da3 /www-servers/servefile/files
parentdev-ruby/rr: keyword 3.0.7 for ~riscv (diff)
downloadgentoo-ad0cfc47a51fc05af2ebe14ddfb3b062a1610893.tar.gz
gentoo-ad0cfc47a51fc05af2ebe14ddfb3b062a1610893.tar.bz2
gentoo-ad0cfc47a51fc05af2ebe14ddfb3b062a1610893.zip
www-servers/servefile: 0.5.2
Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-3.0.22, Repoman-3.0.3
Diffstat (limited to 'www-servers/servefile/files')
-rw-r--r--www-servers/servefile/files/servefile-0.5.2-ipv6-absent-tests.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/www-servers/servefile/files/servefile-0.5.2-ipv6-absent-tests.patch b/www-servers/servefile/files/servefile-0.5.2-ipv6-absent-tests.patch
new file mode 100644
index 000000000000..6231fc8b7d91
--- /dev/null
+++ b/www-servers/servefile/files/servefile-0.5.2-ipv6-absent-tests.patch
@@ -0,0 +1,25 @@
+From 3d34ff40f1a24873793c33b8f16a9940050fa93f Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 24 May 2020 15:51:15 +0200
+Subject: [PATCH] Fix test test_ipv4_only for global USE=-ipv6
+
+---
+ tests/test_servefile.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_servefile.py b/tests/test_servefile.py
+index 8132f6b..3f127f4 100644
+--- a/tests/test_servefile.py
++++ b/tests/test_servefile.py
+@@ -137,7 +137,7 @@ def test_ipv4_only(run_servefile, datadir):
+ check_download(data, fname='testfile', host='127.0.0.1')
+
+ sock = socket.socket(socket.AF_INET6)
+- with pytest.raises(connrefused_exc):
++ with pytest.raises((connrefused_exc, OSError)):
+ sock.connect(("::1", SERVEFILE_DEFAULT_PORT))
+
+
+--
+2.26.2
+