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

Method test_nested_queue

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

Source from the content-addressed store, hash-verified

2839 self.assertEqual(outer[-1][-1]['feed'], 3)
2840
2841 def test_nested_queue(self):
2842 a = self.list() # Test queue inside list
2843 a.append(self.Queue())
2844 a[0].put(123)
2845 self.assertEqual(a[0].get(), 123)
2846 b = self.dict() # Test queue inside dict
2847 b[0] = self.Queue()
2848 b[0].put(456)
2849 self.assertEqual(b[0].get(), 456)
2850
2851 def test_namespace(self):
2852 n = self.Namespace()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected