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 Flameeyes
Recipients Flameeyes
Date 2020-04-01.10:00:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585735205.76.0.306632606173.issue40133@roundup.psfhosted.org>
In-reply-to
Content
The unittest.mock `assert_called_*with*` methods take either literals, or the single `ANY` special matcher (https://docs.python.org/3/library/unittest.mock.html#any) to match any argument.

Experience suggests me that it's useful to have more flexible matchers, such as INSTANCEOF or REGEXP.

Will provide a starting pull request for this today. (Be warned: it's the first time I try contributing to CPython.)
History
Date User Action Args
2020-04-01 10:00:05Flameeyessetrecipients: + Flameeyes
2020-04-01 10:00:05Flameeyessetmessageid: <1585735205.76.0.306632606173.issue40133@roundup.psfhosted.org>
2020-04-01 10:00:05Flameeyeslinkissue40133 messages
2020-04-01 10:00:05Flameeyescreate