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

Python 3: Port tests in fetch/api [part 2] #24624

Merged
merged 3 commits into from Jul 21, 2020

Conversation

ziransun
Copy link
Member

No description provided.

@ziransun
Copy link
Member Author

Together with changes at PR 24617 and PR 24451 , this should complete all handler related test porting in fetch/api

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Thanks, just one tiny nit.

@@ -1,13 +1,15 @@
import time

from six.moves import xrange
Copy link
Member

Choose a reason for hiding this comment

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

Let's use range instead if that works across both.

@annevk
Copy link
Member

annevk commented Jul 16, 2020

Wait, why do we need to import range?

@ziransun
Copy link
Member Author

Wait, why do we need to import range?

'xrange' is not defined in Python 3, it's renamed as 'range' If we can change original 'xrange' to 'range' in the line, I think we can remove the six import line.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Yeah, that's what I meant. Thanks!

@foolip foolip merged commit 69b245c into web-platform-tests:master Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants