keyurusdadiya opened a new pull request, #60939: URL: https://github.com/apache/airflow/pull/60939
Closes #58470 **Fix tests broken by time-machine 3.0+ upgrade** The new `time-machine` 3.0 removed automatic mocking of `time.monotonic()` and `time.monotonic_ns`. Also the dateutil support is optional , one can use it as `time-machine[dateutil]` , we need dateutil as used in Refer below change log of time-machine from 3.0.0 and beyond: `https://time-machine.readthedocs.io/en/latest/changelog.html` **Changes** - `time-machine[dateutil]` to >=3.0.0 - Mocked `time.monotonic` with `unittest.mock.patch` where needed as the support is deprecated from 3.0.0 and beyond. monotonic time kept ticking after the time was freezed with time-machine. - changed `time_machine.coordinates.shift()` to `time_machine.shift()` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
