Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: capture exceptions that are not caught during the test execution an reraise them. Fixes #2705 #2707

Merged
merged 1 commit into from Jan 10, 2018

Conversation

lazka
Copy link
Member

@lazka lazka commented Jan 9, 2018

Exceptions raised during signals don't bubble to the test caller, instead they
get pushed into sys.excepthook which by default prints them.

This adds a pytest plugin which wraps each test (I think..) collects uncaught exceptions
and reraises them at the end.

This uncovers a few bugs, so this makes the tests fail atm.

…on an reraise them. Fixes quodlibet#2705

Exceptions raised during signals don't bubble to the test caller, instead they
get pushed into sys.excepthook which by default prints them.

This adds a pytest plugin which wraps each test (I think..) collects uncaught exceptions
and reraises them at the end.

This uncovers some bugs in the playlistbrowser tests. Most of the inherited tests were
failing, and I think they never passed, so just remove the inheritance.
@lazka lazka merged commit 9969990 into quodlibet:master Jan 10, 2018
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.

None yet

1 participant