test: make full discovery optional-state independent

This commit is contained in:
2026-08-19 19:20:05 +02:00
parent ffaab543d2
commit d600bca374
3 changed files with 74 additions and 10 deletions
+9
View File
@@ -40,8 +40,17 @@ class WheelRuntimeTests(unittest.TestCase):
"pip",
"install",
"--no-deps",
"--force-reinstall",
str(core_wheels[0]),
cwd=temporary_root,
# Full editable discovery exports every sibling src directory.
# Do not let pip mistake that importable Core metadata for an
# installation inside this fresh wheel-only environment.
env={
key: value
for key, value in os.environ.items()
if key != "PYTHONPATH"
},
)
database_path = temporary_root / "wheel-runtime.db"