diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-02 04:15:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 04:15:47 (GMT) |
commit | 3ec3e0f83c34eda1ad89b731e68f4a22a5f39333 (patch) | |
tree | 4f369f669c2bf927aa7df4e2b40965014d31a54a /Lib/test/_test_multiprocessing.py | |
parent | 956f1fc89475f6c8252a9eb0689bcf0eb69c15ea (diff) | |
download | cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.zip cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.tar.gz cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.tar.bz2 |
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987)
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
(cherry picked from commit 85b920498b42c69185540ecc2f5c4907fd38d877)
Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index ead92cf..4c4da24 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -2286,6 +2286,16 @@ class _TestContainers(BaseTestCase): self.assertIsInstance(outer[0], list) # Not a ListProxy self.assertEqual(outer[-1][-1]['feed'], 3) + def test_nested_queue(self): + a = self.list() # Test queue inside list + a.append(self.Queue()) + a[0].put(123) + self.assertEqual(a[0].get(), 123) + b = self.dict() # Test queue inside dict + b[0] = self.Queue() + b[0].put(456) + self.assertEqual(b[0].get(), 456) + def test_namespace(self): n = self.Namespace() n.name = 'Bob' |