Skip to content

Commit 0b1a542

Browse files
committed
Unmark passing test on macOS and Windows
1 parent b39263d commit 0b1a542

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,8 +1719,6 @@ def test_str_for_enums(self):
17191719
self.assertEqual(str(s.family), 'AddressFamily.AF_INET')
17201720
self.assertEqual(str(s.type), 'SocketKind.SOCK_STREAM')
17211721

1722-
# TODO: RUSTPYTHON, AssertionError: 526337 != <SocketKind.SOCK_STREAM: 1>
1723-
@unittest.expectedFailure
17241722
def test_socket_consistent_sock_type(self):
17251723
SOCK_NONBLOCK = getattr(socket, 'SOCK_NONBLOCK', 0)
17261724
SOCK_CLOEXEC = getattr(socket, 'SOCK_CLOEXEC', 0)
@@ -1737,6 +1735,10 @@ def test_socket_consistent_sock_type(self):
17371735
s.setblocking(False)
17381736
self.assertEqual(s.type, socket.SOCK_STREAM)
17391737

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+
17401742
def test_unknown_socket_family_repr(self):
17411743
# Test that when created with a family that's not one of the known
17421744
# AF_*/SOCK_* constants, socket.family just returns the number.

0 commit comments

Comments
 (0)