Skip to content

Conversation

@pllim
Copy link
Contributor

@pllim pllim commented Oct 20, 2025

Close #305

I think this is okay for now? Looks like the problem is somewhere in between Python 3.14 and pytest. Not sure how to debug. The conditions are specific enough that it won't accidentally ignore other stuff, I hope. Who knows, might magically fixed in Python 3.14.1 if it is Python. Or we can also open reminder issue to revisit in the future. What do you think?

@pllim pllim marked this pull request as ready for review October 20, 2025 15:57
@pllim pllim requested a review from bsipocz October 20, 2025 15:57
@pllim
Copy link
Contributor Author

pllim commented Oct 20, 2025

Sorry for the messy commits. Just faster to edit on GH as I am working on different things at once. Would be nice if we have the "squash and merge" button here. If not, I can squash manually later when I have time. Thanks for your patience.

@bsipocz bsipocz added this to the v1.5.1 milestone Oct 20, 2025
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

OK, this is fine for now. Hopefully it will ring a bell if we start seeing anything similar in library CI, too.

if os.name == "nt" and python_version() == "3.14.0" and not PYTEST_LT_8_5:
with warnings.catch_warnings():
# ResourceWarning unclosed file pytest.EXE --> PytestUnraisableExceptionWarning
warnings.filterwarnings("ignore")
Copy link
Member

Choose a reason for hiding this comment

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

this may be a bit too wide, but there are so many conditions it needs to catch that I don't mind it much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to catch ResourceWarning specifically but it didn't work. Catching PytestUnraisableExceptionWarning is a little meaningless.

@bsipocz
Copy link
Member

bsipocz commented Oct 20, 2025

squash merge button messes with my release scripts, so would prefer a rebase, but also no big deal to have the commits in the history, so I will just go ahead and merge it as is.

Thanks!

@bsipocz bsipocz merged commit 0a60453 into scientific-python:main Oct 20, 2025
21 checks passed
@pllim pllim deleted the fix-ci-win branch October 20, 2025 21:34
pllim added a commit to pllim/pytest-doctestplus that referenced this pull request Oct 29, 2025
pllim added a commit to pllim/pytest-doctestplus that referenced this pull request Oct 29, 2025
and globally ignore ResourceWarning

TST: Revert scientific-python#307
pllim added a commit to pllim/pytest-doctestplus that referenced this pull request Nov 1, 2025
and globally ignore ResourceWarning

TST: Revert scientific-python#307
@bsipocz bsipocz modified the milestones: v1.5.1, v1.6.0 Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: test failures with windows+pytest-dev+py3.14

2 participants