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

Make test_memorizing Python3 compatible #21690

Closed

Conversation

svillar
Copy link
Contributor

@svillar svillar commented Feb 10, 2020

By using six.moves.StringIO

@stephenmcgruer
Copy link
Contributor

stephenmcgruer commented Feb 10, 2020

Is tools/pywebsocket run on the CI? I don't see any mention of tests from it in the TC run (e.g. https://community-tc.services.mozilla.com/tasks/bGxgrlxsQLC5ZdnGbDBvhQ/runs/0/logs/https%3A%2F%2Fcommunity-tc.services.mozilla.com%2Fapi%2Fqueue%2Fv1%2Ftask%2FbGxgrlxsQLC5ZdnGbDBvhQ%2Fruns%2F0%2Fartifacts%2Fpublic%2Flogs%2Flive.log), and running tox locally in tools/ doesn't get me results from pywebsocket

@jgraham
Copy link
Contributor

jgraham commented Feb 10, 2020

No, historically pywebsocket was third party. We vendored it and eventually made a few minor changes, but continued to treat it as mostly third party so we didn't enable the tests in CI &c. If we're making more changes to update it we should also start running the tests.

@stephenmcgruer
Copy link
Contributor

Ack. @svillar - can you look into enabling pywebsocket tests as part of the CI testing run? I see it in norecursedirs in pytest.ini, perhaps it just needs removed from there.

@svillar
Copy link
Contributor Author

svillar commented Feb 10, 2020

Ack. @svillar - can you look into enabling pywebsocket tests as part of the CI testing run? I see it in norecursedirs in pytest.ini, perhaps it just needs removed from there.

Sure. I prefer to do it in a different PR though

Copy link
Contributor

@stephenmcgruer stephenmcgruer left a comment

Choose a reason for hiding this comment

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

Very reasonable. This PR LGTM, assuming it takes the test from failing -> pass on your machine and still works in py2.7

Copy link
Member

@Hexcles Hexcles left a comment

Choose a reason for hiding this comment

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

Although this LGTM, I think the maintainers of pywebsocket are also working on Python 3 compatibility. We should loop them in and avoid collisions. @ricea @quasi-mod

@svillar
Copy link
Contributor Author

svillar commented Feb 10, 2020

Although this LGTM, I think the maintainers of pywebsocket are also working on Python 3 compatibility. We should loop them in and avoid collisions. @ricea @quasi-mod

BTW I have another 3 patches pending to be reviewed related to pywebsocket (and several others about to come), see https://git.io/JvnrR, https://git.io/JvnrE and https://git.io/Jvnoj

If they're already working on that I can stop working on this component and focus on others.

@quasi-mod
Copy link
Contributor

We have officially released pywebsocket3 (a python 3 compatible version of the original pywebsocket) earlier this week.

BTW I have another 3 patches pending to be reviewed related to pywebsocket (and several others about to come), see https://git.io/JvnrR, https://git.io/JvnrE and https://git.io/Jvnoj

Looking at the patches, I think the changes made in these patches are already applied in pywebsocket3. Our plan is to replace the old pywebsocket to the new pywesocket3, so I think you can stop working on pywebsocket and continue on with the other components.

@Hexcles
Copy link
Member

Hexcles commented Feb 13, 2020

Thanks, @quasi-mod . And sorry for the insufficient communication @svillar .

I'm closing these PRs for now. See #21749 for next steps.

@Hexcles Hexcles closed this Feb 13, 2020
@svillar svillar deleted the memorizing-stringio branch February 17, 2020 07:10
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

6 participants