Skip to content

Commit 764d884

Browse files
committed
Use the standard library distutils for running tests
This is in line with what our unit tests are written with the assumption of.
1 parent 5cf9840 commit 764d884

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- "src/pip/_vendor/**"
4343
- "pyproject.toml"
4444
tests:
45-
# Anything that's touching testable stuff
45+
# Anything that's touching code-related stuff
4646
- ".github/workflows/ci.yml"
4747
- "src/**"
4848
- "tests/**"

noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,14 @@ def test(session: nox.Session) -> None:
110110
# Run the tests
111111
# LC_CTYPE is set to get UTF-8 output inside of the subprocesses that our
112112
# tests use.
113-
session.run("pytest", *arguments, env={"LC_CTYPE": "en_US.UTF-8"})
113+
session.run(
114+
"pytest",
115+
*arguments,
116+
env={
117+
"LC_CTYPE": "en_US.UTF-8",
118+
"SETUPTOOLS_USE_DISTUTILS": "stdlib",
119+
},
120+
)
114121

115122

116123
@nox.session

0 commit comments

Comments
 (0)