From 7803f4d6d77035f6b7a95bb881c1e77b9818c8f6 Mon Sep 17 00:00:00 2001 From: Al Rigazzi Date: Tue, 30 Jan 2024 10:28:23 +0100 Subject: [PATCH] Fix test_logs to prevent generation of dir (#467) This PR fixes the `test_logs.py::test_context_leak` test that was erroneously creating a directory named `some value` in SmartSim's root directory. --- tests/test_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_logs.py b/tests/test_logs.py index 53542249a..908a6550a 100644 --- a/tests/test_logs.py +++ b/tests/test_logs.py @@ -162,7 +162,7 @@ def test_context_leak(test_dir: str, turn_on_tm, monkeypatch): test_dir = pathlib.Path(test_dir) test_dir.mkdir(parents=True, exist_ok=True) - original_ctx_value = "some value" + original_ctx_value = test_dir / pathlib.Path("some value") ctx_var = smartsim.log.ctx_exp_path token = ctx_var.set(original_ctx_value)