diff --git a/Lib/test/test_asyncio/test_tools.py b/Lib/test/test_asyncio/test_tools.py index 0413e236c27dfa..c61c29ccdc0ab9 100644 --- a/Lib/test/test_asyncio/test_tools.py +++ b/Lib/test/test_asyncio/test_tools.py @@ -1,7 +1,7 @@ import unittest from asyncio import tools - +import locale # mock output of get_all_awaited_by function. TEST_INPUTS_TREE = [ @@ -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_)