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

Method test_unsupported

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

Source from the content-addressed store, hash-verified

131 self.assertFalse(f.seekable())
132
133 def test_unsupported(self):
134 shell = MockShell()
135 f = run.StdInputFile(shell, 'stdin')
136 self.assertRaises(OSError, f.fileno)
137 self.assertRaises(OSError, f.tell)
138 self.assertRaises(OSError, f.seek, 0)
139 self.assertRaises(OSError, f.write, 'x')
140 self.assertRaises(OSError, f.writelines, ['x'])
141
142 def test_read(self):
143 shell = MockShell()

Callers

nothing calls this directly

Calls 2

MockShellClass · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected