Skip to content

Commit 553dd34

Browse files
committed
Rely on path.Path for directory context.
`contextlib.chdir` isn't available until Python 3.11.
1 parent 2af90ac commit 553dd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/tests/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def sample_project(tmp_path):
6262

6363
@pytest.fixture
6464
def sample_project_cwd(sample_project):
65-
with contextlib.chdir(sample_project):
65+
with path.Path(sample_project):
6666
yield
6767

6868

0 commit comments

Comments
 (0)