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

Method test_errno

Lib/test/test_select.py:32–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 @unittest.skipIf(sys.platform.startswith('freebsd'),
31 'skip because of a FreeBSD bug: kern/155606')
32 def test_errno(self):
33 with open(__file__, 'rb') as fp:
34 fd = fp.fileno()
35 fp.close()
36 try:
37 select.select([fd], [], [], 0)
38 except OSError as err:
39 self.assertEqual(err.errno, errno.EBADF)
40 else:
41 self.fail("exception not raised")
42
43 def test_returned_list_identity(self):
44 # See issue #8329

Callers

nothing calls this directly

Calls 6

openFunction · 0.50
filenoMethod · 0.45
closeMethod · 0.45
selectMethod · 0.45
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected