Yoichi Nakayama added the comment: It is not a bug of MagicMock. It is a problem of the sample program. Calling str to mock object cause not only read access, it also write to related objects. So there is a race condition.
---------- nosy: +Yoichi Nakayama _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26600> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com