time freezing doesn't work with pandas timestamps

Viewed 338

I've noticed this behaviour since at least 2015 and it hasn't changed since. When freezegun (or pytest-freezegun) is used to freeze time in a test, datetime.datetime.now() returns the frozen value while pd.Timestamp('now') and pd.to_datetime('now') do not. Is there a way around this?

For example: https://pypi.org/project/pytest-freezegun/

0 Answers
Related