File: fix-ftbfs-on-hurd.patch

package info (click to toggle)
python-tornado 6.2.0-3%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,656 kB
  • sloc: python: 27,837; javascript: 156; sh: 99; ansic: 58; xml: 49; makefile: 48; sql: 23
file content (25 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Mattia Rizzolo <mattia@debian.org>
Date: Sat, 21 May 2016 21:55:27 +0000
Subject: skip UnixSocketTest on hurd,
 as unix sockets with SO_REUSEADDR are not supported there

 A little discussion about unix sockets with SO_REUSEADDR can be found on
 https://lists.gnu.org/archive/html/bug-hurd/2016-01/msg00039.html

Forwarded: no
Patch-Name: fix-ftbfs-on-hurd.patch
---
 tornado/test/httpserver_test.py | 2 ++
 1 file changed, 2 insertions(+)

--- python-tornado.orig/tornado/test/httpserver_test.py
+++ python-tornado/tornado/test/httpserver_test.py
@@ -711,6 +711,8 @@
     not hasattr(socket, "AF_UNIX") or sys.platform == "cygwin",
     "unix sockets not supported on this platform",
 )
+@unittest.skipIf(sys.platform == 'gnu0',
+                 "unix sockets with SO_REUSEADDR not supported on this platform")
 class UnixSocketTest(AsyncTestCase):
     """HTTPServers can listen on Unix sockets too.