Łukasz Langa added the comment: Awesome! Thank you for your patch, Kasia. For the record, I left the non-magic Mock behavior untouched since Kasia rightfully points out that in this case m.configure_mock() also does not work.
---------- keywords: -needs review resolution: -> fixed status: open -> closed title: Mock constructor configuration fails for magic methods -> MagicMock initializer fails for magic methods _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23310> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com