Skip to content

Conversation

@gengjiawen
Copy link
Member

@gengjiawengengjiawen commented Jan 25, 2019

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

cc @nodejs/python @cclauss

@nodejs-github-botnodejs-github-bot added test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory. labels Jan 25, 2019
@addaleax
Copy link
Member

@addaleax
Copy link
Member

This patch failed the python linter… /cc @nodejs/python

@cclauss
Copy link
Contributor

cclauss commented Jan 27, 2019

Just reverse the try except and change the exception to ImportError.

Copy link
Contributor

@thefourtheyethefourtheye left a 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
Copy link
MemberAuthor

gengjiawen commented Jan 28, 2019

I can change it. But the root cause is the lint bug.

@cclauss
Copy link
Contributor

cclauss commented Jan 28, 2019

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
Copy link
MemberAuthor

I see, thanks for the info.

tools/test.py Outdated
Copy link
Contributor

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 2

Copy link
Contributor

Choose a reason for hiding this comment

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

@gengjiawen
Copy link
MemberAuthor

I will push again when I got home :)

@refack
Copy link
Contributor

@refackrefack self-assigned this Jan 28, 2019
@addaleax
Copy link
Member

Landed in 08100bf

addaleax pushed a commit that referenced this pull request Jan 28, 2019
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]>
@refackrefack removed their assignment Jan 28, 2019
@refackrefack added the python PRs and issues that require attention from people who are familiar with Python. label Jan 28, 2019
addaleax pushed a commit that referenced this pull request Jan 28, 2019
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]>
@targostargos mentioned this pull request Jan 29, 2019
BethGriggs pushed a commit that referenced this pull request Apr 29, 2019
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]>
@BethGriggsBethGriggs mentioned this pull request May 1, 2019
BethGriggs pushed a commit that referenced this pull request May 10, 2019
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]>
MylesBorins pushed a commit that referenced this pull request May 16, 2019
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]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pythonPRs and issues that require attention from people who are familiar with Python.testIssues and PRs related to the tests.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@gengjiawen@addaleax@cclauss@refack@thefourtheye@nodejs-github-bot