pytest-dev / pytest-timeout

MIT License
216 stars 64 forks source link

New py.test fixtures teardown does not play nice #5

Closed pytest-timeout-bot closed 10 years ago

pytest-timeout-bot commented 11 years ago

Original report by Floris Bruynooghe (Bitbucket: flub, GitHub: flub).


The teardown of the py.test 2.3 fixtures is executed outside of the timeout-managed code. Especially session-scoped fixtures appear to be torn down after the session itself is torn down. The result is that a hang in the teardown does not get caught by pytest-timeout

pytest-timeout-bot commented 10 years ago

Original comment by Floris Bruynooghe (Bitbucket: flub, GitHub: flub).


Fixed in 0.4