spulec / freezegun

Let your Python tests travel through time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: unsupported operand type(s) for +: 'FakeDate' and 'relativedelta'

xsevy opened this issue · comments

The problem occurs when I'm trying to sum FakeDate and relativedelta (from python-dateutil library) objects, where FakeDate(2014, 8, 1) and relativedelta(months=+1).

python-dateutil          2.8.2
freezegun                1.2.1

Python 3.10.10

+1 Also running into this issue with FakeDate and timedelta.