Skip to content

Conversation

@behnazh-w
Copy link
Member

See https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions

Unraisable exceptions and unhandled thread exceptions are normally considered bugs, but may go unnoticed because they don’t cause the program itself to crash. Pytest detects these conditions and issues a warning that is visible in the test run summary. This PR changes the warnings to errors instead.

See https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions

unraisable exceptions and unhandled thread exceptions are normally
considered bugs, but may go unnoticed because they don’t cause the
program itself to crash. Pytest detects these conditions and issues a
warning that is visible in the test run summary. This PR changes the
warnings to errors instead.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w requested a review from tromai as a code owner July 13, 2023 20:46
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 13, 2023
@tromai
Copy link
Contributor

tromai commented Jul 16, 2023

Is there a current test that suffers this issue or is this PR more like a general enhancements for our test suite?

@behnazh-w
Copy link
Member Author

Is there a current test that suffers this issue or is this PR more like a general enhancements for our test suite?

Well if there were any issues in the current tests, the CI wouldn't pass. So, by turning on this option we prevent future issues 🙂

@behnazh-w behnazh-w merged commit 9ca5e9b into staging Jul 16, 2023
@behnazh-w behnazh-w deleted the test-exceptions branch July 17, 2023 01:14
art1f1c3R pushed a commit that referenced this pull request Nov 29, 2024
See https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions

unraisable exceptions and unhandled thread exceptions are normally
considered bugs, but may go unnoticed because they don’t cause the
program itself to crash. Pytest detects these conditions and issues a
warning that is visible in the test run summary. This PR changes the
warnings to errors instead.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants