summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-01-17 21:49:57 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-01-17 21:49:57 -0500
commit3c8e758caa11abe63040058ba136a68d2b620ea3 (patch)
tree758a79fa5d38c7c85b48c128caf8205f11313d68
parent7fe4a4054a92782a434d25d4ff85231537892c7f (diff)
downloadpython-setuptools-git-3c8e758caa11abe63040058ba136a68d2b620ea3.tar.gz
Avoid indirection in src_dir
-rw-r--r--setuptools/tests/fixtures.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/tests/fixtures.py b/setuptools/tests/fixtures.py
index 0480033c..4a990eb9 100644
--- a/setuptools/tests/fixtures.py
+++ b/setuptools/tests/fixtures.py
@@ -6,9 +6,6 @@ import pytest
from . import contexts
-SRC_DIR = pathlib.Path(__file__).parents[2]
-
-
@pytest.fixture
def user_override(monkeypatch):
"""
@@ -32,7 +29,7 @@ def tmpdir_cwd(tmpdir):
@pytest.fixture
def src_dir():
"""The project source directory available via fixture."""
- return SRC_DIR
+ return pathlib.Path(__file__).parents[2]
@pytest.fixture