Skip to content

gh-133677: Skip test in test_asyncio if not UTF-8 #133719

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_asyncio/test_tools.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from asyncio import tools

import locale

# mock output of get_all_awaited_by function.
TEST_INPUTS_TREE = [
Expand Down Expand Up @@ -771,6 +771,7 @@ def test_multiple_cycles_same_node(self):
cycles = ctx.exception.cycles
self.assertTrue(any(set(c) == {1, 2, 3} for c in cycles))

@unittest.skipIf(locale.getpreferredencoding().lower() != 'utf-8', 'test requires utf-8')
def test_table_output_format(self):
input_ = [(1, [(1, "Task-A", [[["foo"], 2]]), (2, "Task-B", [])])]
table = tools.build_task_table(input_)
Expand Down
Loading