Blame 00173-workaround-ENOPROTOOPT-in-bind_port.patch

e32ce18
--- Python-3.4.0b1/Lib/test/support/__init__.py.orig	2013-11-27 12:14:26.507216624 +0100
e32ce18
+++ Python-3.4.0b1/Lib/test/support/__init__.py	2013-11-27 12:17:01.490805587 +0100
e32ce18
@@ -593,7 +593,8 @@
e32ce18
             if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) == 1:
e32ce18
                 raise TestFailed("tests should never set the SO_REUSEADDR "   \
e32ce18
                                  "socket option on TCP/IP sockets!")
e32ce18
-        if hasattr(socket, 'SO_REUSEPORT'):
e32ce18
+        if hasattr(socket, 'SO_REUSEPORT') \
e32ce18
+                and 'WITHIN_PYTHON_RPM_BUILD' not in os.environ: # rhbz#913732
e32ce18
             try:
e32ce18
                 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
e32ce18
                     raise TestFailed("tests should never set the SO_REUSEPORT "   \