Skip to content

Commit

Permalink
Fix test_logs to prevent generation of dir (#467)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
al-rigazzi authored Jan 30, 2024
1 parent 092163b commit 7803f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7803f4d

Please sign in to comment.