-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
do not import unittest if mock is disabled #1096
Conversation
But do you need this Does the If you could share the requirements, I would either adjust the |
No, I do not need the lab module.
|
Oke, let me see how to help in this situation. I believe this week we will fix it. |
Sorry for delay, I'm fixing this tonight. |
The issue is that unittest may not be provided on embedded platforms, though it is included in the minimal build. This is a workaround, a proper fix should exclude lab module from the minimal build. Bug-Url: #1096
Merged the fix, please check if it works for you: #1100 When you confirm it working, I'll roll out a minor release for that. |
It works! |
Thanks for the feedback! I close this PR, and the release will be ready tonight. |
I am working on an embedded Linux, whose python does not have unittest module supplied,
I moved the import statements, if use_mock is True, then do import