Skip to content

Commit 079bf1f

Browse files
committed
Use tmp_path fixture in test_recreate, refs #503
1 parent 7b2d1c0 commit 079bf1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_recreate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def test_recreate_not_allowed_for_connection():
2121
@pytest.mark.parametrize(
2222
"use_path,file_exists", [(True, True), (True, False), (False, True), (False, False)]
2323
)
24-
def test_recreate(tmpdir, use_path, file_exists):
25-
filepath = str(tmpdir / "data.db")
24+
def test_recreate(tmp_path, use_path, file_exists):
25+
filepath = str(tmp_path / "data.db")
2626
if use_path:
2727
filepath = pathlib.Path(filepath)
2828
if file_exists:

0 commit comments

Comments
 (0)