Skip to content

Disallow pytest 9.0.0#3780

Merged
jsiirola merged 1 commit intoPyomo:mainfrom
jsiirola:pytest-9-bug
Nov 10, 2025
Merged

Disallow pytest 9.0.0#3780
jsiirola merged 1 commit intoPyomo:mainfrom
jsiirola:pytest-9-bug

Conversation

@jsiirola
Copy link
Copy Markdown
Member

Fixes # .

Summary/Motivation:

pytest 9.0.0 broke support for skipping a test by raising unittest.SkipTest (which also breaks the unittest.skip, unittest.skipIf, and unittest.skipUnless decorators). See upstream: pytest-dev/pytest#13895

Changes proposed in this PR:

  • Disallow installing pytest 9.0.0

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@jsiirola jsiirola requested a review from mrmundt November 10, 2025 06:57
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.25%. Comparing base (1137fe9) to head (7df31e3).
⚠️ Report is 298 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3780      +/-   ##
==========================================
+ Coverage   89.23%   89.25%   +0.01%     
==========================================
  Files         907      907              
  Lines      104818   104818              
==========================================
+ Hits        93534    93551      +17     
+ Misses      11284    11267      -17     
Flag Coverage Δ
builders 29.15% <ø> (-0.01%) ⬇️
default 85.78% <ø> (?)
expensive 35.70% <ø> (?)
linux 86.68% <ø> (-2.32%) ⬇️
linux_other 86.68% <ø> (-0.01%) ⬇️
osx 82.81% <ø> (ø)
win 84.93% <ø> (ø)
win_other 84.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mrmundt
Copy link
Copy Markdown
Contributor

mrmundt commented Nov 10, 2025

How fascinating... I love wild bugs!

@jsiirola jsiirola merged commit 4ce6049 into Pyomo:main Nov 10, 2025
83 of 95 checks passed
@jsiirola jsiirola deleted the pytest-9-bug branch November 10, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants