Repository navigation
Fix test runs on pytest 9.2 - #1025
Merged
Merged
Conversation
Remove the unused --json_report conftest option, which clashes with pytest-json-report on pytest 9.2. Pin pytest<9.2 because pytest-forked 1.7.5 cannot serialize the new 9.2 report fields.
mgray07
approved these changes
Oct 28, 2026
AbigailFernandes
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pytest 9.2 came out on 10/27 and breaks our test runs in two ways:
--json_reportoption. pytest 9.2 now errors when two options share a dest, and this one clashes with pytest-json-report's--json-report, so every run fails at startup. Nothing uses the option, so this removes it.--forkedtest fails with "EXITED with status 3". This pinspytest<9.2until pytest-forked has a release with the fix (Fix report serialization with pytest 9.2. pytest-dev/pytest-forked#112).This is what's breaking the nightly: https://github.com/aws-neuron/torch-neuronx/actions/runs/40642076637
Testing: we made the same two changes internally and the forked distributed tests pass again on pytest 9.1.1.