Change `setup.py` call w/ `pip install` @ tests

Using this CLI interface has been deprecated in `setuptools` [[1]].

[1]: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
This commit is contained in:
Sviatoslav Sydorenko 2024-06-17 17:24:23 +02:00
parent 3b6f09e210
commit 1bec6dac64
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 4 additions and 1 deletions

View File

@ -1464,7 +1464,10 @@ def test_issue_9765(pytester: Pytester) -> None:
}
)
subprocess.run([sys.executable, "setup.py", "develop"], check=True)
subprocess.run(
[sys.executable, "-Im", "pip", "install", "-e", "."],
check=True,
)
try:
# We are using subprocess.run rather than pytester.run on purpose.
# pytester.run is adding the current directory to PYTHONPATH which avoids