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

Method test_closed

Lib/test/_test_multiprocessing.py:6465–6469  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6463 # Test specific to CPython since it tests private attributes
6464 @test.support.cpython_only
6465 def test_closed(self):
6466 queue = multiprocessing.SimpleQueue()
6467 queue.close()
6468 self.assertTrue(queue._reader.closed)
6469 self.assertTrue(queue._writer.closed)
6470
6471
6472class TestPoolNotLeakOnFailure(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
SimpleQueueMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected