Michael Foord added the comment: You can use kwargs.pop instead of the two step fetch and delete.
For the test, could you add an assert that the name is used. Can you add an extra underscore to the method name, to make it: test_create_autospec_with_name ---------- nosy: +michael.foord _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21222> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com