-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-133677: Fix tests when running in non-UTF-8 locale #133865
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
gh-133677: Fix tests when running in non-UTF-8 locale #133865
Conversation
48e3a7c
to
842076d
Compare
@@ -791,21 +791,21 @@ def test_table_output_format(self): | ||
class TestAsyncioToolsEdgeCases(unittest.TestCase): | ||
|
||
def test_task_awaits_self(self): | ||
"""A task directly awaits itself – should raise a cycle.""" | ||
"""A task directly awaits itself - should raise a cycle.""" |
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.
These are all unrelated.
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.
This is very related. Error happens when non-ASCII "–" is written to stdout with a non-UTF-8 encoding.
This is also against the wrong branch, main will be unaffected once #133712 |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
GH-133938 is a backport of this pull request to the 3.14 branch. |
…ythonGH-133865) (cherry picked from commit 14305a8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-133939 is a backport of this pull request to the 3.13 branch. |
Relevant buildbot run for this PR: https://buildbot.python.org/#/builders/1678/builds/37 (Not linked by gh at the moment) |
latin-1
#133677