-
Notifications
You must be signed in to change notification settings - Fork 10.5k
test: make test_util
more Python 3 friendly
#32710
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
Conversation
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test Windows platform |
@swift-ci please test |
@swift-ci please test Windows platform |
Build failed |
Build failed |
This uses `io.open` to allow `test_util` to open with the encoding and newline handling across python 2 and python 3. With this change, the test suite failures are within the single digits locally.
This is required to ensure that we encode the strings correctly when redirected. This allows the printing to succeed where it would fail previously due to encoding failures.
@swift-ci please test |
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, thanks!
Build failed |
Appease the python linter
@swift-ci please python lint |
@swift-ci please test |
@swift-ci please test windows platform |
This uses
io.open
to allowtest_util
to open with the encoding andnewline handling across python 2 and python 3. With this change, the
test suite failures are within the single digits locally.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.