diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
commit | c0c702a5e3284e843e680064b4c6a7280242c567 (patch) | |
tree | 59332b13537a0c006c090ae925e8d3be50bb4699 /python/mock-1.0.0/tests | |
parent | 45d4933f568d8814d8045852a9a1b006b912dcf7 (diff) | |
download | UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.gz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.lz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.xz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.zip |
Use UTC where appropriate in python files
Diffstat (limited to 'python/mock-1.0.0/tests')
-rw-r--r-- | python/mock-1.0.0/tests/testhelpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/mock-1.0.0/tests/testhelpers.py b/python/mock-1.0.0/tests/testhelpers.py index e788da844..f41023c37 100644 --- a/python/mock-1.0.0/tests/testhelpers.py +++ b/python/mock-1.0.0/tests/testhelpers.py @@ -41,21 +41,21 @@ class AnyTest(unittest2.TestCase): def test_any_and_datetime(self): mock = Mock() - mock(datetime.now(), foo=datetime.now()) + mock(datetime.utcnow(), foo=datetime.utcnow()) mock.assert_called_with(ANY, foo=ANY) def test_any_mock_calls_comparison_order(self): mock = Mock() - d = datetime.now() + d = datetime.utcnow() class Foo(object): def __eq__(self, other): return False def __ne__(self, other): return True - for d in datetime.now(), Foo(): + for d in datetime.utcnow(), Foo(): mock.reset_mock() mock(d, foo=d, bar=d) |