Skip to content

Commit

Permalink
fixup! tests: remove duplicated helper, fix precondition check
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Aug 10, 2024
1 parent aa07e4b commit 43a0d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def chdir(d: Path, *, mkdir: bool = False):
if not d.exists():
if not mkdir:
raise ValueError(f"Directory '{d}' does not exist and we won't create it")
elif not d.is_dir():
elif not d.isdir():
raise ValueError(f"'{d}' exists and is not a directory")

prev_wd = Path.cwd()
Expand Down

0 comments on commit 43a0d1e

Please sign in to comment.