diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-17 21:49:57 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-17 21:49:57 -0500 |
commit | 3c8e758caa11abe63040058ba136a68d2b620ea3 (patch) | |
tree | 758a79fa5d38c7c85b48c128caf8205f11313d68 | |
parent | 7fe4a4054a92782a434d25d4ff85231537892c7f (diff) | |
download | python-setuptools-git-3c8e758caa11abe63040058ba136a68d2b620ea3.tar.gz |
Avoid indirection in src_dir
-rw-r--r-- | setuptools/tests/fixtures.py | 5 |
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 |