Skip to content

Commit ba52c86

Browse files
committed
Only use ascii in PyUnicode_DecodeLocale test, it fails in CI
1 parent 95c6a2d commit ba52c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_unicode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class TestPyUnicode(CPyExtTestCase):
626626
test_PyUnicode_DecodeLocaleAndSize = CPyExtFunction(
627627
lambda args: args[0].decode(locale.getencoding(), errors=args[1].decode('ascii')),
628628
lambda: (
629-
('skål'.encode(locale.getencoding()), b'strict'),
629+
(b'hello', b'strict'),
630630
),
631631
resultspec="O",
632632
argspec='y#y',
@@ -637,7 +637,7 @@ class TestPyUnicode(CPyExtTestCase):
637637
test_PyUnicode_DecodeLocale = CPyExtFunction(
638638
lambda args: args[0].decode(locale.getencoding(), errors=args[1].decode('ascii')),
639639
lambda: (
640-
('skål'.encode(locale.getencoding()), b'strict'),
640+
(b'hello', b'strict'),
641641
),
642642
resultspec="O",
643643
argspec='yy',

0 commit comments

Comments
 (0)