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

Method test_not_int

tests/test_socket_fd.py:43–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 return fdpexpect.fdspawn(socket.fileno(), timeout=timeout, use_poll=use_poll)
42
43 def test_not_int(self):
44 with self.assertRaises(pexpect.ExceptionPexpect):
45 session = fdpexpect.fdspawn('bogus', timeout=10)
46
47 def test_not_file_descriptor(self):
48 with self.assertRaises(pexpect.ExceptionPexpect):

Callers

nothing calls this directly

Calls 1

assertRaisesMethod · 0.80

Tested by

no test coverage detected