MCPcopy Index your code
hub / github.com/RustPython/RustPython / SelectableIsAtty

Class SelectableIsAtty

Lib/test/test_io.py:2386–2392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2384
2385 def test_isatty(self):
2386 class SelectableIsAtty(MockRawIO):
2387 def __init__(self, isatty):
2388 MockRawIO.__init__(self)
2389 self._isatty = isatty
2390
2391 def isatty(self):
2392 return self._isatty
2393
2394 pair = self.tp(SelectableIsAtty(False), SelectableIsAtty(False))
2395 self.assertFalse(pair.isatty())

Callers 1

test_isattyMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_isattyMethod · 0.68