MCPcopy Create free account
hub / github.com/pexpect/pexpect / test_waitnoecho

Method test_waitnoecho

tests/test_expect.py:263–274  ·  view source on GitHub ↗

Tests setecho(False) followed by waitnoecho()

(self)

Source from the content-addressed store, hash-verified

261 raise
262
263 def test_waitnoecho(self):
264 " Tests setecho(False) followed by waitnoecho() "
265 p = pexpect.spawn('cat', echo=False, timeout=5)
266 try:
267 p.setecho(False)
268 p.waitnoecho()
269 except IOError:
270 if sys.platform.lower().startswith('sunos'):
271 if hasattr(unittest, 'SkipTest'):
272 raise unittest.SkipTest("Not supported on this platform.")
273 return 'skip'
274 raise
275
276 def test_waitnoecho_order(self):
277

Callers

nothing calls this directly

Calls 3

setechoMethod · 0.80
waitnoechoMethod · 0.80
spawnMethod · 0.45

Tested by

no test coverage detected