@@ -1055,13 +1055,17 @@ def server_close(self):
10551055 super (TestUDPServer , self ).server_close ()
10561056 self ._closed = True
10571057
1058- if hasattr (socket , "AF_UNIX" ):
1058+
1059+ # GR-28433
1060+ if hasattr (socket , "AF_UNIX" ) and sys .implementation .name != 'graalpython' :
10591061 class TestUnixStreamServer (TestTCPServer ):
10601062 address_family = socket .AF_UNIX
10611063
1064+
10621065 class TestUnixDatagramServer (TestUDPServer ):
10631066 address_family = socket .AF_UNIX
10641067
1068+
10651069# - end of server_helper section
10661070
10671071class SMTPHandlerTest (BaseTest ):
@@ -1732,12 +1736,13 @@ def _get_temp_domain_socket():
17321736 os .remove (fn )
17331737 return fn
17341738
1735- @unittest .skipUnless (hasattr (socket , "AF_UNIX" ), "Unix sockets required" )
1736- class UnixSocketHandlerTest (SocketHandlerTest ):
17371739
1740+ # GR-28433
1741+ @unittest .skipUnless (hasattr (socket , "AF_UNIX" ) and sys .implementation .name != 'graalpython' , "Unix sockets required" )
1742+ class UnixSocketHandlerTest (SocketHandlerTest ):
17381743 """Test for SocketHandler with unix sockets."""
17391744
1740- if hasattr (socket , "AF_UNIX" ):
1745+ if hasattr (socket , "AF_UNIX" ) and sys . implementation . name != 'graalpython' :
17411746 server_class = TestUnixStreamServer
17421747
17431748 def setUp (self ):
@@ -1813,12 +1818,13 @@ def test_output(self):
18131818 self .handled .wait ()
18141819 self .assertEqual (self .log_output , "spam\n eggs\n " )
18151820
1816- @unittest .skipUnless (hasattr (socket , "AF_UNIX" ), "Unix sockets required" )
1817- class UnixDatagramHandlerTest (DatagramHandlerTest ):
18181821
1822+ # GR-28433
1823+ @unittest .skipUnless (hasattr (socket , "AF_UNIX" ) and sys .implementation .name != 'graalpython' , "Unix sockets required" )
1824+ class UnixDatagramHandlerTest (DatagramHandlerTest ):
18191825 """Test for DatagramHandler using Unix sockets."""
18201826
1821- if hasattr (socket , "AF_UNIX" ):
1827+ if hasattr (socket , "AF_UNIX" ) and sys . implementation . name != 'graalpython' :
18221828 server_class = TestUnixDatagramServer
18231829
18241830 def setUp (self ):
@@ -1897,12 +1903,13 @@ def test_output(self):
18971903 self .handled .wait ()
18981904 self .assertEqual (self .log_output , b'<11>h\xc3 \xa4 m-sp\xc3 \xa4 m' )
18991905
1900- @unittest .skipUnless (hasattr (socket , "AF_UNIX" ), "Unix sockets required" )
1901- class UnixSysLogHandlerTest (SysLogHandlerTest ):
19021906
1907+ # GR-28433
1908+ @unittest .skipUnless (hasattr (socket , "AF_UNIX" ) and sys .implementation .name != 'graalpython' , "Unix sockets required" )
1909+ class UnixSysLogHandlerTest (SysLogHandlerTest ):
19031910 """Test for SysLogHandler with Unix sockets."""
19041911
1905- if hasattr (socket , "AF_UNIX" ):
1912+ if hasattr (socket , "AF_UNIX" ) and sys . implementation . name != 'graalpython' :
19061913 server_class = TestUnixDatagramServer
19071914
19081915 def setUp (self ):
0 commit comments