diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 06:30:43 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 06:44:38 -0500 |
commit | c3ee30c1cfd133f1e36a4a8992b531a0dc7ec5a9 (patch) | |
tree | f97bb81c7bc66e9cccad8a28cf1e57d2ceeeb347 /tests/balance_xdist_plugin.py | |
parent | 0b05b45e342813b34d906e840e253a06b37133ae (diff) | |
download | python-coveragepy-git-c3ee30c1cfd133f1e36a4a8992b531a0dc7ec5a9.tar.gz |
refactor(test): use tmp_path instead of tmpdir
Diffstat (limited to 'tests/balance_xdist_plugin.py')
-rw-r--r-- | tests/balance_xdist_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/balance_xdist_plugin.py b/tests/balance_xdist_plugin.py index 170037e6..aec7dc21 100644 --- a/tests/balance_xdist_plugin.py +++ b/tests/balance_xdist_plugin.py @@ -29,6 +29,7 @@ import csv import os import shutil import time + from pathlib import Path import pytest @@ -64,7 +65,7 @@ class BalanceXdistPlugin: # pragma: debugging if not self.running_all: return - tests_csv_dir = Path(session.startdir).resolve() / "tmp/tests_csv" + tests_csv_dir = session.startpath.resolve() / "tmp/tests_csv" self.tests_csv = tests_csv_dir / f"{self.worker}.csv" if self.worker == "none": |