MCPcopy Index your code
hub / github.com/python/cpython / test_unsupported

Method test_unsupported

Lib/idlelib/idle_test/test_run.py:236–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234 self.assertFalse(f.seekable())
235
236 def test_unsupported(self):
237 shell = MockShell()
238 f = run.StdOutputFile(shell, 'stdout')
239 self.assertRaises(OSError, f.fileno)
240 self.assertRaises(OSError, f.tell)
241 self.assertRaises(OSError, f.seek, 0)
242 self.assertRaises(OSError, f.read, 0)
243 self.assertRaises(OSError, f.readline, 0)
244
245 def test_write(self):
246 shell = MockShell()

Callers

nothing calls this directly

Calls 2

MockShellClass · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected