Created
July 18, 2017 10:41
-
-
Save masahitojp/ff84c37b7ae1b9430005e536d60f43cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from datetime import datetime | |
>>> from unittest import mock | |
>>> with mock.patch('__main__.datetime') as m: | |
... datetime.now() > datetime.now() | |
... | |
Traceback (most recent call last): | |
File "<stdin>", line 2, in <module> | |
TypeError: '>' not supported between instances of 'MagicMock' and 'MagicMock' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment