Message216190
>>> from unittest import mock
>>> def b():
... print("hello")
...
>>> q = mock.create_autospec(b, name="a")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kdas/code/python/cpython3/Lib/unittest/mock.py", line 2092, in create_autospec
name=_name, **_kwargs)
TypeError: type object got multiple values for keyword argument 'name'
The issue was originally reported on mock bug tracker. I am working on a patch for the same. |
|
Date |
User |
Action |
Args |
2014-04-14 19:54:11 | kushal.das | set | recipients:
+ kushal.das |
2014-04-14 19:54:11 | kushal.das | set | messageid: <1397505251.05.0.288307474202.issue21222@psf.upfronthosting.co.za> |
2014-04-14 19:54:11 | kushal.das | link | issue21222 messages |
2014-04-14 19:54:10 | kushal.das | create | |
|