From 405c8592cb398953f8ece8ffb6aad9eaefffbb29 Mon Sep 17 00:00:00 2001
From: Ashwin Kumar Karnad <ashwin-kumar.karnad@mpsd.mpg.de>
Date: Tue, 6 Jun 2023 13:46:57 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

---
 tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests.py b/tests.py
index ec01d01..62e9bc7 100644
--- a/tests.py
+++ b/tests.py
@@ -338,7 +338,7 @@ def test_metadata_logging(tmp_path):
         logging.warning("Add some other info")
 
     # Check that relevant lines show up in the log file somewhere
-    with open(tmp_path / "test-metadata.log", "r") as f:
+    with open(filename, "r") as f:
         logfile_content = f.read()
         for expected_log in expected_log_entries:
             assert expected_log in logfile_content
-- 
GitLab