You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug, but a in comparison breaks between dates and datetimes when using Python 3.9+
import datetime
from freezegun.api import FakeDate
assert FakeDate(2023, 1, 1) == datetime.datetime(2023, 1, 1, 0, 0)
# OK
assert FakeDate(2023, 1, 1) in [datetime.datetime(2023, 1, 1, 0, 0)]
# OK in python3.8 but not OK in python3.9+
The text was updated successfully, but these errors were encountered:
I don't know if this is a bug, but a
in
comparison breaks between dates and datetimes when using Python 3.9+The text was updated successfully, but these errors were encountered: