spulec/freezegun — pull request #6 by dnmiller (2012-12-21 00:10:17+00:00)
Title: Add support for subtracting date/datetime objects to create timedelta objects.

Normally, subtracting date/datetime from another date/datetime returns a timedelta. Doing so with FakeDate/FakeDatetime instead raises an AttributeError since their `__sub__` methods try to force the resulting timedelta returned by the super's `__sub__` to be a FakeDate/FakeDatetime. As a result, code that subtracts date/datetime objects from other date/datetime objects will fail if patched with freeze_time.

This change causes the `__sub__` methods for FakeDate/FakeDatetime to return a timedelta if the super's `__sub__