-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
SyntaxError not catched when named explicte but unittest does #255
Comments
The fix for this was included in version |
Sorry I would reopen this. I have nearly the same problem with a When I explicite name the test via When I do discover via |
The ModuleNotFoundError is still there and not catched |
My current environment:
Green 3.4.0, Coverage 6.2, Python 3.9.4
on Windows10I run a test by naming it explicit:
There are two problems about that output:
Run 0 tests
)SyntaxError
is not thrown.Unittest itself shows this output
This is the MWE. The file is in a folder named
tests
and there is also an empty__init__.py
in the same folder.The last line should cause a syntax error.
When you fix the syntax of the MWE the test is found by green. So I think the not catched SyntaxError also causing the missing test.
The text was updated successfully, but these errors were encountered: