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

Handle recent python versions in device tests #8623

Merged
merged 2 commits into from
Jun 29, 2022
Merged

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 28, 2022

Update soon-to-be deprecated code in the runner.py
https://docs.python.org/3/library/imp.html is deprecated since 3.4, will be removed in 3.12
https://docs.python.org/3/library/configparser.html readfp is replaced with read_file since 3.2, will be removed in 3.12

Use venv instead of virtualenv. We don't really use any of the extended features, and might as well simplify installation requirements.
virtualenv/bin/python can execute runner.py inside of venv, no need to activate beforehand.

Update soon-to-be deprecated code in the runner.py
Use venv instead of virtualenv, simplify installation requirements
Run things directly using the venv python, no need to activate beforehand
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !
Some device test-on-device and some test-on-host passed without python warnings.

@mcspr mcspr merged commit 601da8e into esp8266:master Jun 29, 2022
@mcspr mcspr deleted the bstest-venv branch June 29, 2022 11:27
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

Successfully merging this pull request may close these issues.

None yet

2 participants