Florent Xicluna added the comment: I've been bitten by this issue with a custom psycopg2 mock.
>>> cur = mock.Mock() >>> >>> cur.connection.cursor.return_value = cur >>> cur.reset_mock() RuntimeError: maximum recursion depth exceeded the patch looks ok, except the mix of tab and spaces :-) ---------- nosy: +flox _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18622> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com