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 rafael.fonseca
Recipients rafael.fonseca
Date 2016-11-18.16:07:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479485234.58.0.222215885157.issue28735@psf.upfronthosting.co.za>
In-reply-to
Content
On Python 3.5.2 mock.Mock() is equal to mock.ANY, but mock.MagicMock() is not.

Minimal example:

In Python 3.5.2:
>>> from unittest import mock
>>> mock.Mock() == mock.ANY
True
>>> mock.ANY == mock.Mock()
True
>>> mock.MagicMock() == mock.ANY
False
>>> mock.ANY == mock.MagicMock()
True
History
Date User Action Args
2016-11-18 16:07:14rafael.fonsecasetrecipients: + rafael.fonseca
2016-11-18 16:07:14rafael.fonsecasetmessageid: <1479485234.58.0.222215885157.issue28735@psf.upfronthosting.co.za>
2016-11-18 16:07:14rafael.fonsecalinkissue28735 messages
2016-11-18 16:07:14rafael.fonsecacreate