File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1719,8 +1719,6 @@ def test_str_for_enums(self):
1719
1719
self .assertEqual (str (s .family ), 'AddressFamily.AF_INET' )
1720
1720
self .assertEqual (str (s .type ), 'SocketKind.SOCK_STREAM' )
1721
1721
1722
- # TODO: RUSTPYTHON, AssertionError: 526337 != <SocketKind.SOCK_STREAM: 1>
1723
- @unittest .expectedFailure
1724
1722
def test_socket_consistent_sock_type (self ):
1725
1723
SOCK_NONBLOCK = getattr (socket , 'SOCK_NONBLOCK' , 0 )
1726
1724
SOCK_CLOEXEC = getattr (socket , 'SOCK_CLOEXEC' , 0 )
@@ -1737,6 +1735,10 @@ def test_socket_consistent_sock_type(self):
1737
1735
s .setblocking (False )
1738
1736
self .assertEqual (s .type , socket .SOCK_STREAM )
1739
1737
1738
+ # TODO: RUSTPYTHON, AssertionError: 526337 != <SocketKind.SOCK_STREAM: 1>
1739
+ if sys .platform == "linux" :
1740
+ test_socket_consistent_sock_type = unittest .expectedFailure (test_socket_consistent_sock_type )
1741
+
1740
1742
def test_unknown_socket_family_repr (self ):
1741
1743
# Test that when created with a family that's not one of the known
1742
1744
# AF_*/SOCK_* constants, socket.family just returns the number.
You can’t perform that action at this time.
0 commit comments