-
Notifications
You must be signed in to change notification settings - Fork 1k
unittest.main fails to discover tests #414
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
Comments
Ah. Just discovered that this version of |
Never mind. The issue was actually that my unit tests themselves exhausted the microcontroller's memory--I can't even directly import the test module. So the four-arg version of |
There has been some significant improvements in the unittest library recently - including around discovery. See #488 for details. Could you please update to the latest unittest library and try again? |
This should be fixed now that #488 is merged. |
Running:
results in
The workaround is to install
test.support
and utilizerun_unittest
but wow that's a lot of overhead.The fix also appears to be to use the four-argument version of
__import__
:Replace:
micropython-lib/unittest/unittest.py
Line 217 in eae01bd
with:
Issue present with:
The text was updated successfully, but these errors were encountered: