Skip to content

Commit f6a541b

Browse files
committed
#224: Fix the use of Path and pin to a minimum version which includes the new is_dir() function.
1 parent b0408fa commit f6a541b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytest-shutil/pytest_shutil/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run(self, cmd, capture=False, check_rc=True, cd=None, shell=False, **kwargs)
136136
def teardown(self):
137137
if self.delete is not None and not self.delete:
138138
return
139-
if hasattr(self, 'workspace') and self.workspace.isdir():
139+
if hasattr(self, 'workspace') and self.workspace.is_dir():
140140
log.debug("")
141141
log.debug("=======================================================")
142142
log.debug("pytest_shutil deleting workspace %s" % self.workspace)

pytest-shutil/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'execnet',
2222
'contextlib2;python_version<"3"',
2323
'pytest',
24-
'path; python_version >= "3.5"',
24+
'path>=16.12.0; python_version >= "3.5"',
2525
'path.py; python_version < "3.5"',
2626
'mock; python_version<"3.3"',
2727
'termcolor'

0 commit comments

Comments
 (0)