[issue29200] is it a bug in `functools._HashedSeq`

2017-01-07 Thread Jiajun Huang
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

[issue29200] is it a bug in `functools._HashedSeq`

2017-01-07 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2017-01-03 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-29 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-15 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-14 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-13 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-13 Thread Jiajun Huang
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

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-13 Thread Jiajun Huang
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

[issue28961] Is it a bug(method `_Call.__new__` in unittest.mock)?

2016-12-13 Thread Jiajun Huang
New submission from Jiajun Huang: code in `_Call.__new__`: def __new__(cls, value=(), name=None, parent=None, two=False, ¦ ¦ ¦ from_kall=True

[issue28919] Simplify `_copy_func_details` in unittest.mock

2016-12-13 Thread Jiajun Huang
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

[issue28919] Simplify `_copy_func_details` in unittest.mock

2016-12-09 Thread Jiajun Huang
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