◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
4 changes: 2 additions & 2 deletions Lib/multiprocessing/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def MakeProxyType(name, exposed, _cache={}):


def AutoProxy(token, serializer, manager=None, authkey=None,
exposed=None, incref=True):
'''
Return an auto-proxy for `token`
'''
Expand All @@ -978,7 +978,7 @@ def AutoProxy(token, serializer, manager=None, authkey=None,

ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed)
proxy = ProxyType(token, serializer, manager=manager, authkey=authkey,
incref=incref)
proxy._isauto = True
return proxy

Expand Down
10 changes: 10 additions & 0 deletions Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
@@ -2256,6 +2256,16 @@ def test_dict_proxy_nested(self):
self.assertIsInstance(outer[0], list) # Not a ListProxy
self.assertEqual(outer[-1][-1]['feed'], 3)

def test_namespace(self):
n = self.Namespace()
n.name = 'Bob'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Toggle all file notes Toggle all file annotations