Skip to content

Commit 8b738f2

Browse files
committed
Adde docstring
1 parent 4e28a2f commit 8b738f2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/integration/util/dependencies/audit_integration_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ def create(self) -> PoetryProject:
5353
return self
5454

5555
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+
"""
5665
content = self.toml.read_text()
5766
changed = re.sub(
5867
r'^requires-python\s*=\s*".*"$',

0 commit comments

Comments
 (0)