Skip to content

Commit f31725f

Browse files
committed
Do not run test_table_output_format if system encoding is not UTF8
1 parent c492ac7 commit f31725f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_asyncio/test_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ def test_multiple_cycles_same_node(self):
771771
cycles = ctx.exception.cycles
772772
self.assertTrue(any(set(c) == {1, 2, 3} for c in cycles))
773773

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

0 commit comments

Comments
 (0)