From cebb06cc7d87ea324acf6fd1690ff426fd3db81a Mon Sep 17 00:00:00 2001 From: ThibaultFy Date: Thu, 3 Oct 2024 10:53:34 +0200 Subject: [PATCH] chore: fix test Signed-off-by: ThibaultFy --- tests/tools/test_opener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tools/test_opener.py b/tests/tools/test_opener.py index 6d37343b..4b7d6140 100644 --- a/tests/tools/test_opener.py +++ b/tests/tools/test_opener.py @@ -58,8 +58,8 @@ def fake_data(self, n_samples): assert o.get_data() == "data_class" -def test_load_opener_from_path(valid_opener_code): - dirpath = tmp_cwd / "myopener" +def test_load_opener_from_path(tmpdir, valid_opener_code): + dirpath = tmpdir / "myopener" dirpath.mkdir() path = dirpath / "my_opener.py" path.write_text(valid_opener_code)