Jiajun Huang added the comment:
thanks for reply :)
2017年1月8日星期日,Roundup Robot 写道:
>
> Roundup Robot added the comment:
>
> New changeset 2e7e91785306 by Raymond Hettinger in branch 'default':
> Issue #29200: Fix test to use self.assertEqual instead of py.t
New submission from Jiajun Huang:
the class definition:
class _HashedSeq(list):
""" This class guarantees that hash() will be called no more than once
per element. This is important because the lru_cache() will hash
the key multiple times
Jiajun Huang added the comment:
sorry about that, fixed.
--
Added file: http://bugs.python.org/file46126/mock.patch
___
Python tracker
<http://bugs.python.org/issue28
Jiajun Huang added the comment:
hi, do this need more test case or something else to be merged? please let me
know :)
--
___
Python tracker
<http://bugs.python.org/issue28
Jiajun Huang added the comment:
code and test case has been updated.
--
Added file: http://bugs.python.org/file45922/mock.patch
___
Python tracker
<http://bugs.python.org/issue28
Jiajun Huang added the comment:
I think we can write `_Call.__new__` as:
def __new__(cls, value=(), name='',...)
it's much simpler and readable.
--
___
Python tracker
<http://bugs.pyt
Jiajun Huang added the comment:
The new patch has been updated. :)
--
Added file: http://bugs.python.org/file45885/mock.patch
___
Python tracker
<http://bugs.python.org/issue28
Jiajun Huang added the comment:
update the patch file follow the
doc(https://docs.python.org/devguide/gitdevs.html)
--
Added file: http://bugs.python.org/file45884/mock.patch
___
Python tracker
<http://bugs.python.org/issue28
Jiajun Huang added the comment:
Thanks for reply :) the patch has been uploaded.
--
keywords: +patch
Added file: http://bugs.python.org/file45883/mock_class_call.patch
___
Python tracker
<http://bugs.python.org/issue28
New submission from Jiajun Huang:
code in `_Call.__new__`:
def __new__(cls, value=(), name=None, parent=None, two=False,
¦ ¦ ¦ from_kall=True
Jiajun Huang added the comment:
So what should I do next to make the code being merged into CPython? I am new
to mercurial(or just wait for it?).
--
___
Python tracker
<http://bugs.python.org/issue28
Changes by Jiajun Huang :
--
components: Library (Lib)
files: mock.patch
keywords: patch
nosy: Jiajun Huang
priority: normal
pull_requests: 2
severity: normal
status: open
title: Simplify `_copy_func_details` in unittest.mock
type: enhancement
versions: Python 3.7
Added file: http
12 matches
Mail list logo