FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: cover timeout setup outside the main thread by hfycium · Pull Request #208 · pytest-dev/pytest-timeout · GitHub

Repository navigation

test: cover timeout setup outside the main thread - #208

Open
hfycium wants to merge 1 commit into
pytest-dev:mainfrom
hfycium:codex/fix-not-main-thread-test
Open

hfycium wants to merge 1 commit into
pytest-dev:mainfrom
hfycium:codex/fix-not-main-thread-test

Conversation

hfycium commented Oct 5, 2026

Copy link
Copy Markdown

Fixes #158.

The existing test_not_main_thread was permanently skipped because it referenced the removed pytest_timeout.timeout_setup function. Rework it to exercise the current pytest_timeout_set_timer hook from a worker thread, preserving coverage for the fallback from the signal method to the thread method.

Validation:

  • uv run pytest -q --basetemp=...: 36 passed, 23 skipped on Windows/Python 3.12
  • uv run pre-commit run --all-files: all checks passed

hfycium commented Oct 5, 2026

Copy link
Copy Markdown
Author

All CI checks are passing on Python 3.10–3.14 across Ubuntu and Windows. The PR only updates the regression test for #158 and is ready for review. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad and misleading test

1 participant


Back | FazBrowse Home | New Git URL