@@ -5029,12 +5029,12 @@ def write(self, b: bytes):
5029
5029
pass
5030
5030
5031
5031
def test_reader_subclass (self ):
5032
- self .assertIsSubclass (MyReader , io .Reader [ bytes ] )
5033
- self .assertNotIsSubclass (str , io .Reader [ bytes ] )
5032
+ self .assertIsSubclass (self . MyReader , io .Reader )
5033
+ self .assertNotIsSubclass (str , io .Reader )
5034
5034
5035
5035
def test_writer_subclass (self ):
5036
- self .assertIsSubclass (MyWriter , io .Writer [ bytes ] )
5037
- self .assertNotIsSubclass (str , io .Writer [ bytes ] )
5036
+ self .assertIsSubclass (self . MyWriter , io .Writer )
5037
+ self .assertNotIsSubclass (str , io .Writer )
5038
5038
5039
5039
5040
5040
def load_tests (loader , tests , pattern ):
@@ -5048,6 +5048,7 @@ def load_tests(loader, tests, pattern):
5048
5048
CTextIOWrapperTest , PyTextIOWrapperTest ,
5049
5049
CMiscIOTest , PyMiscIOTest ,
5050
5050
CSignalsTest , PySignalsTest , TestIOCTypes ,
5051
+ ProtocolsTest ,
5051
5052
)
5052
5053
5053
5054
# Put the namespaces of the IO module we are testing and some useful mock
0 commit comments