mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987)
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
(cherry picked from commit 85b920498b
)
Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
This commit is contained in:
parent
956f1fc894
commit
3ec3e0f83c
4 changed files with 15 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue