MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_nested_queue

Method test_nested_queue

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

Source from the content-addressed store, hash-verified

2582 self.assertEqual(outer[-1][-1]['feed'], 3)
2583
2584 def test_nested_queue(self):
2585 a = self.list() # Test queue inside list
2586 a.append(self.Queue())
2587 a[0].put(123)
2588 self.assertEqual(a[0].get(), 123)
2589 b = self.dict() # Test queue inside dict
2590 b[0] = self.Queue()
2591 b[0].put(456)
2592 self.assertEqual(b[0].get(), 456)
2593
2594 def test_namespace(self):
2595 n = self.Namespace()

Callers

nothing calls this directly

Calls 7

QueueMethod · 0.80
listMethod · 0.45
appendMethod · 0.45
putMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45
dictMethod · 0.45

Tested by

no test coverage detected