File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 22import itertools
33import logging
44import socket
5- import sys
65import threading
76import time
8- import unittest
97import uuid
108from 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
You can’t perform that action at this time.
0 commit comments