Skip to content

Commit 6fb127d

Browse files
committed
Remove platform-specific test that isn't very useful.
1 parent 686cd1f commit 6fb127d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/sync/test_connection.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
import itertools
33
import logging
44
import socket
5-
import sys
65
import threading
76
import time
8-
import unittest
97
import uuid
108
from unittest.mock import Mock, patch
119

@@ -937,17 +935,6 @@ def test_close_reason(self):
937935

938936
# Test reporting of network errors.
939937

940-
@unittest.skipUnless(sys.platform == "darwin", "works only on BSD")
941-
def test_reading_in_recv_events_fails(self):
942-
"""Error when reading incoming frames is correctly reported."""
943-
# Inject a fault by closing the socket. This works only on BSD.
944-
# I cannot find a way to achieve the same effect on Linux.
945-
self.connection.socket.close()
946-
# The connection closed exception reports the injected fault.
947-
with self.assertRaises(ConnectionClosedError) as raised:
948-
self.connection.recv()
949-
self.assertIsInstance(raised.exception.__cause__, IOError)
950-
951938
def test_writing_in_recv_events_fails(self):
952939
"""Error when responding to incoming frames is correctly reported."""
953940
# Inject a fault by shutting down the socket for writing — but not by

0 commit comments

Comments
 (0)