Skip to content

Commit

Permalink
#224: Fix the use of Path and pin to a minimum version which includes…
Browse files Browse the repository at this point in the history
… the new is_dir() function.
  • Loading branch information
jonbannister committed Aug 16, 2024
1 parent 5f9b88a commit b77d99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest-shutil/pytest_shutil/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def run(self, cmd, capture=False, check_rc=True, cd=None, shell=False, **kwargs)
def teardown(self):
if self.delete is not None and not self.delete:
return
if hasattr(self, 'workspace') and self.workspace.isdir():
if hasattr(self, 'workspace') and self.workspace.is_dir():
log.debug("")
log.debug("=======================================================")
log.debug("pytest_shutil deleting workspace %s" % self.workspace)
Expand Down
2 changes: 1 addition & 1 deletion pytest-shutil/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'execnet',
'contextlib2;python_version<"3"',
'pytest',
'path; python_version >= "3.5"',
'path>=16.12.0; python_version >= "3.5"',
'path.py; python_version < "3.5"',
'mock; python_version<"3.3"',
'termcolor'
Expand Down

0 comments on commit b77d99b

Please sign in to comment.