Ejemplo n.º 1
0
 def test_default_implementations(self):
     import _io
     file = _io._TextIOBase()
     raises(_io.UnsupportedOperation, file.read)
     raises(_io.UnsupportedOperation, file.seek, 0)
     raises(_io.UnsupportedOperation, file.readline)
     raises(_io.UnsupportedOperation, file.detach)
Ejemplo n.º 2
0
 def test_default_implementations(self):
     import _io
     file = _io._TextIOBase()
     raises(_io.UnsupportedOperation, file.read)
     raises(_io.UnsupportedOperation, file.seek, 0)
     raises(_io.UnsupportedOperation, file.readline)
     raises(_io.UnsupportedOperation, file.detach)