mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-13 11:59:12 -05:00
Merge pull request #303 from pre-commit/pytest_path_easier
Use path.join
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ def tempdir_factory(tmpdir):
|
||||
self.tmpdir_count = 0
|
||||
|
||||
def get(self):
|
||||
path = os.path.join(tmpdir.strpath, five.text(self.tmpdir_count))
|
||||
path = tmpdir.join(five.text(self.tmpdir_count)).strpath
|
||||
self.tmpdir_count += 1
|
||||
os.mkdir(path)
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user