#NEWLINE# @ support . cpython_only #NEWLINE# def test_sizeof( self ) : #NEWLINE# #INDENT# basesize = support . calcobjsize ( 'P2nN2Pn' ) #NEWLINE# check = self . check_sizeof #NEWLINE# self . assertEqual ( object . __sizeof__ ( io . BytesIO ( ) ) , basesize ) #NEWLINE# check ( io . BytesIO ( ) , basesize ) #NEWLINE# check ( io . BytesIO ( b'a' ) , ( ( basesize + 1 ) + 1 ) ) #NEWLINE# check ( io . BytesIO ( ( b'a' * 1000 ) ) , ( ( basesize + 1000 ) + 1 ) )