CleanCut / green

Green is a clean, colorful, fast python test runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

grant-zietsman opened this issue · comments

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.

(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.

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

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