Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a31f4cc8
Commit
a31f4cc8
authored
Feb 12, 2019
by
Rémi Lapeyre
Committed by
Giampaolo Rodola
Feb 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35918: Remove broken has_key method and add test (#11819)
parent
522346d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/multiprocessing/managers.py
Lib/multiprocessing/managers.py
+1
-1
Lib/test/_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+0
-2
Misc/NEWS.d/next/Library/2019-02-11-16-23-10.bpo-35918.oGDlpT.rst
...S.d/next/Library/2019-02-11-16-23-10.bpo-35918.oGDlpT.rst
+2
-0
No files found.
Lib/multiprocessing/managers.py
View file @
a31f4cc8
...
...
@@ -1135,7 +1135,7 @@ class ListProxy(BaseListProxy):
DictProxy
=
MakeProxyType
(
'DictProxy'
,
(
'__contains__'
,
'__delitem__'
,
'__getitem__'
,
'__iter__'
,
'__len__'
,
'__setitem__'
,
'clear'
,
'copy'
,
'get'
,
'
has_key'
,
'
items'
,
'__setitem__'
,
'clear'
,
'copy'
,
'get'
,
'items'
,
'keys'
,
'pop'
,
'popitem'
,
'setdefault'
,
'update'
,
'values'
))
DictProxy
.
_method_to_typeid_
=
{
...
...
Lib/test/_test_multiprocessing.py
View file @
a31f4cc8
...
...
@@ -4897,8 +4897,6 @@ class TestSyncManagerTypes(unittest.TestCase):
assert
len
(
obj
)
==
1
assert
obj
[
'foo'
]
==
5
assert
obj
.
get
(
'foo'
)
==
5
# TODO: fix https://bugs.python.org/issue35918
# assert obj.has_key('foo')
assert
list
(
obj
.
items
())
==
[(
'foo'
,
5
)]
assert
list
(
obj
.
keys
())
==
[
'foo'
]
assert
list
(
obj
.
values
())
==
[
5
]
...
...
Misc/NEWS.d/next/Library/2019-02-11-16-23-10.bpo-35918.oGDlpT.rst
0 → 100644
View file @
a31f4cc8
Removed broken ``has_key`` method from
multiprocessing.managers.SyncManager.dict. Contributed by Rémi Lapeyre.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment