This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a2bf0ae7b3a Fix timezone-dependent symlink test in
TestFileProcessorHandler (#68910)
a2bf0ae7b3a is described below
commit a2bf0ae7b3a54d612c741bfd5148d919f89c9326
Author: Shreya Malviya <[email protected]>
AuthorDate: Sat Jun 27 01:20:49 2026 +0100
Fix timezone-dependent symlink test in TestFileProcessorHandler (#68910)
---
airflow-core/tests/unit/utils/log/test_file_processor_handler.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow-core/tests/unit/utils/log/test_file_processor_handler.py
b/airflow-core/tests/unit/utils/log/test_file_processor_handler.py
index ad0982dbea4..31d6ffe4102 100644
--- a/airflow-core/tests/unit/utils/log/test_file_processor_handler.py
+++ b/airflow-core/tests/unit/utils/log/test_file_processor_handler.py
@@ -77,13 +77,13 @@ class TestFileProcessorHandler:
link = os.path.join(self.base_log_folder, "latest")
- with time_machine.travel(date1, tick=False):
+ with time_machine.travel(f"{date1} 00:00:00+00:00", tick=False):
handler.set_context(filename=os.path.join(self.dag_dir, "log1"))
assert os.path.islink(link)
assert os.path.basename(os.path.realpath(link)) == date1
assert os.path.exists(os.path.join(link, "log1"))
- with time_machine.travel(date2, tick=False):
+ with time_machine.travel(f"{date2} 00:00:00+00:00", tick=False):
handler.set_context(filename=os.path.join(self.dag_dir, "log2"))
assert os.path.islink(link)
assert os.path.basename(os.path.realpath(link)) == date2