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

Raising an exception in setUpClass results in the test case being skipped #244

Closed
grant-zietsman opened this issue Feb 23, 2021 · 3 comments

Comments

@grant-zietsman
Copy link

I would expect the exception to ripple up but it seems like it is swallowed and the tests in the failing test case are ignored. The result is a faulty positive.

@CleanCut
Copy link
Owner

(sigh) Ah, yes upstream setUpClass behavior is a travesty which I have long been dealing with.

I'd welcome help finding and fixing the problem. It will most likely be in one of these functions. If you are on Python 3.7 or earlier, you'll want to focus on _handleClassSetUpPre38, otherwise look at _handleClassSetUpPost38.

Otherwise, post your output of green --version and your OS version and I'll see if I can get to it sometime.

@grant-zietsman
Copy link
Author

I followed up and realised this was a calling code mistake. Apologies.

@CleanCut
Copy link
Owner

No worries! It's nice that there's not a larger issue to be tracked down this time. 😄

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

No branches or pull requests

2 participants