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 martin.panter
Recipients martin.panter
Date 2015-05-31.07:55:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433058938.29.0.435645583396.issue24336@psf.upfronthosting.co.za>
In-reply-to
Content
This patch allows many context managers to accept keyword arguments called “func” and “self”. Current behaviour:

>>> with TestCase().subTest(func="blaua"): pass
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.4/contextlib.py", line 126, in helper
    return _GeneratorContextManager(func, *args, **kwds)
TypeError: __init__() got multiple values for argument 'func'
History
Date User Action Args
2015-05-31 07:55:38martin.pantersetrecipients: + martin.panter
2015-05-31 07:55:38martin.pantersetmessageid: <1433058938.29.0.435645583396.issue24336@psf.upfronthosting.co.za>
2015-05-31 07:55:38martin.panterlinkissue24336 messages
2015-05-31 07:55:37martin.pantercreate