Skip to content

Commit 4400493

Browse files
committed
Specify expectedFailure of test_non_ascii in Lib/test/test_cmd_line_script.py
1 parent 5ab55dc commit 4400493

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_cmd_line_script.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@ def test_pep_409_verbiage(self):
579579
self.assertTrue(text[1].startswith(' File '))
580580
self.assertTrue(text[3].startswith('NameError'))
581581

582-
# TODO: RUSTPYTHON
583-
@unittest.expectedFailure
584582
def test_non_ascii(self):
585583
# Mac OS X denies the creation of a file with an invalid UTF-8 name.
586584
# Windows allows creating a name with an arbitrary bytes name, but
@@ -604,6 +602,10 @@ def test_non_ascii(self):
604602
'stdout=%r stderr=%r' % (stdout, stderr))
605603
self.assertEqual(0, rc)
606604

605+
# TODO: RUSTPYTHON
606+
if sys.platform == "linux":
607+
test_non_ascii = unittest.expectedFailure(test_non_ascii)
608+
607609
def test_issue20500_exit_with_exception_value(self):
608610
script = textwrap.dedent("""\
609611
import sys

0 commit comments

Comments
 (0)