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

Method test_create_destroy

Lib/test/test_interpreters/test_queues.py:44–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 importlib.reload(queues)
43
44 def test_create_destroy(self):
45 qid = _queues.create(2, REPLACE, -1)
46 _queues.destroy(qid)
47 self.assertEqual(get_num_queues(), 0)
48 with self.assertRaises(queues.QueueNotFoundError):
49 _queues.get(qid)
50 with self.assertRaises(queues.QueueNotFoundError):
51 _queues.destroy(qid)
52
53 def test_not_destroyed(self):
54 # It should have cleaned up any remaining queues.

Callers

nothing calls this directly

Calls 6

get_num_queuesFunction · 0.85
createMethod · 0.45
destroyMethod · 0.45
assertEqualMethod · 0.45
assertRaisesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected