potiuk commented on code in PR #40766:
URL: https://github.com/apache/airflow/pull/40766#discussion_r1676866411
##########
tests/sensors/test_time_delta.py:
##########
@@ -57,7 +58,8 @@ def setup_method(self):
@pytest.mark.parametrize(
"data_interval_end, delta, should_deffer",
[
- (REFERENCE_TIME.add(hours=-1), timedelta(hours=1), False),
+ (copy(REFERENCE_TIME).add(hours=-1), timedelta(hours=1), False),
Review Comment:
Still -> REFERENCE_TIME.add() modifies the REFERENCE_TIME which is pretty
bad - because it might not run if you re-run only the second test
--
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]