Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
tools: make test.py Queue part Python 3 compatible#25701
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
gengjiawen commented Jan 25, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
addaleax commented Jan 25, 2019
addaleax commented Jan 27, 2019
This patch failed the python linter… /cc @nodejs/python |
cclauss commented Jan 27, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Just reverse the try except and change the exception to ImportError. |
thefourtheye left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @cclauss's suggested change.
gengjiawen commented Jan 28, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I can change it. But the root cause is the lint bug. |
cclauss commented Jan 28, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
The linter is not wrong ModuleNotFoundError does not exist in Python < 3.6 thus it is an undefined name. Please replace it with ImportError. |
gengjiawen commented Jan 28, 2019
I see, thanks for the info. |
tools/test.py Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try: fromqueueimportQueue, Empty# Python 3exceptImportError: fromQueueimportQueue, Empty# Python 2There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gengjiawen commented Jan 28, 2019
I will push again when I got home :) |
Signed-off-by: gengjiawen <[email protected]>
8dc295a to d30502dComparerefack commented Jan 28, 2019
addaleax commented Jan 28, 2019
Landed in 08100bf |
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25701 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25701 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25701 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25701 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25701 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
make -j4 test(UNIX), orvcbuild test(Windows) passescc @nodejs/python @cclauss