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

Method test_expect_setecho_off_exact

tests/test_expect.py:251–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

249 raise
250
251 def test_expect_setecho_off_exact(self):
252 p = pexpect.spawn('cat', echo=True, timeout=5)
253 p.expect = p.expect_exact
254 try:
255 self._expect_echo_toggle(p)
256 except IOError:
257 if sys.platform.lower().startswith('sunos'):
258 if hasattr(unittest, 'SkipTest'):
259 raise unittest.SkipTest("Not supported on this platform.")
260 return 'skip'
261 raise
262
263 def test_waitnoecho(self):
264 " Tests setecho(False) followed by waitnoecho() "

Callers

nothing calls this directly

Calls 2

_expect_echo_toggleMethod · 0.95
spawnMethod · 0.45

Tested by

no test coverage detected