We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e28a2f commit 8b738f2Copy full SHA for 8b738f2
1 file changed
test/integration/util/dependencies/audit_integration_test.py
@@ -53,6 +53,15 @@ def create(self) -> PoetryProject:
53
return self
54
55
def set_minimum_python_version(self, version: str) -> PoetryProject:
56
+ """
57
+ Set the minimum python version in pyproject.toml. However, the
58
+ sample poetry project will still use the system's default python
59
+ version.
60
+
61
+ Calling "poetry env use python..." for other python versions fails,
62
+ because aux_subprocess() uses an empty environment hiding the python
63
+ version of the overall venv used by pytest.
64
65
content = self.toml.read_text()
66
changed = re.sub(
67
r'^requires-python\s*=\s*".*"$',
0 commit comments