We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ce0a7 commit 9268fb5Copy full SHA for 9268fb5
Lib/test/_test_multiprocessing.py
@@ -2257,6 +2257,16 @@ def test_dict_proxy_nested(self):
2257
self.assertIsInstance(outer[0], list) # Not a ListProxy
2258
self.assertEqual(outer[-1][-1]['feed'], 3)
2259
2260
+ def test_nested_queue(self):
2261
+ a = self.list() # Test queue inside list
2262
+ a.append(self.Queue())
2263
+ a[0].put(123)
2264
+ self.assertEqual(a[0].get(), 123)
2265
+ b = self.dict() # Test queue inside dict
2266
+ b[0] = self.Queue()
2267
+ b[0].put(456)
2268
+ self.assertEqual(b[0].get(), 456)
2269
+
2270
def test_namespace(self):
2271
n = self.Namespace()
2272
n.name = 'Bob'
0 commit comments