This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kushal.das
Recipients kushal.das
Date 2014-04-14.19:54:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397505251.05.0.288307474202.issue21222@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2014-04-14 19:54:11kushal.dassetrecipients: + kushal.das
2014-04-14 19:54:11kushal.dassetmessageid: <1397505251.05.0.288307474202.issue21222@psf.upfronthosting.co.za>
2014-04-14 19:54:11kushal.daslinkissue21222 messages
2014-04-14 19:54:10kushal.dascreate