Skip to content

Commit

Permalink
Use tmp_path fixture in test_recreate, refs #503
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 25, 2022
1 parent 7b2d1c0 commit 079bf1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_recreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def test_recreate_not_allowed_for_connection():
@pytest.mark.parametrize(
"use_path,file_exists", [(True, True), (True, False), (False, True), (False, False)]
)
def test_recreate(tmpdir, use_path, file_exists):
filepath = str(tmpdir / "data.db")
def test_recreate(tmp_path, use_path, file_exists):
filepath = str(tmp_path / "data.db")
if use_path:
filepath = pathlib.Path(filepath)
if file_exists:
Expand Down

0 comments on commit 079bf1f

Please sign in to comment.