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:
parent
3b6f09e210
commit
1bec6dac64
|
@ -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:
|
try:
|
||||||
# We are using subprocess.run rather than pytester.run on purpose.
|
# We are using subprocess.run rather than pytester.run on purpose.
|
||||||
# pytester.run is adding the current directory to PYTHONPATH which avoids
|
# pytester.run is adding the current directory to PYTHONPATH which avoids
|
||||||
|
|
Loading…
Reference in New Issue