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

Method test_context_manager

Lib/test/test_epoll.py:97–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 self.assertRaises(OSError, select.epoll, flags=12356)
96
97 def test_context_manager(self):
98 with select.epoll(16) as ep:
99 self.assertGreater(ep.fileno(), 0)
100 self.assertFalse(ep.closed)
101 self.assertTrue(ep.closed)
102 self.assertRaises(ValueError, ep.fileno)
103
104 def test_add(self):
105 server, client = self._connected_pair()

Callers

nothing calls this directly

Calls 5

assertGreaterMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
filenoMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected