Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/compute/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.4.4; python_version == '3.7'
pytest==8.2.2; python_version >= '3.8'
pytest==9.0.3; python_version == '3.7'
pytest==9.0.3; python_version >= '3.8'
Comment on lines +1 to +2
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Upgrading to pytest==9.0.3 for Python versions 3.7, 3.8, and 3.9 will cause installation failures because pytest 9.x requires Python 3.10 or newer. According to the release notes, pytest 9.0.0 dropped support for Python 3.9, and pytest 8.4.0 dropped support for Python 3.8.

Since the project still supports these older Python versions (as defined in noxfile.py), you should use environment markers to pin compatible versions for them. Note that this means the security fix in 9.0.3 will not be applied to tests running on Python < 3.10; those environments should ideally be upgraded to a supported Python version to resolve the vulnerability.

pytest==7.4.4; python_version == '3.7'
pytest==8.2.2; python_version >= '3.8' and python_version < '3.10'
pytest==9.0.3; python_version >= '3.10'

flaky==3.8.1

Loading