diff --git a/tests/tools/test_opener.py b/tests/tools/test_opener.py index 6d37343b..43de02d2 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(tmp_dir, valid_opener_code): + dirpath = tmp_dir / "myopener" dirpath.mkdir() path = dirpath / "my_opener.py" path.write_text(valid_opener_code)