pytest-dev / pytest-timeout

MIT License
206 stars 63 forks source link

Pytest-timeout is not activated in debugging mode #139

Closed CharlesGaydon closed 11 months ago

CharlesGaydon commented 1 year ago

this may be a feature and not a bug. In VS Code, I usually run pytest from my debugging config. after some confusing waits, I read that this was expected. Is there any way to still time out my test even in debugging mode ? Thanks :)

flub commented 1 year ago

I guess it is not. I probably would accept a PR that adds something like --always-timeout or --disable-debugger-detection or something like that.

michaeljpeters commented 1 year ago

See https://github.com/pytest-dev/pytest-timeout/pull/143