Skip to content

Commit 55fecc5

Browse files
committed
Handle Windows newlines
1 parent 45020ee commit 55fecc5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_capi/test_unicode.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,8 @@ def test_pyunicode_dump(self):
19891989
_PyUnicode_Dump(s)
19901990
sys.stdout.flush()
19911991
""".encode(), PYTHONIOENCODING='UTF-8')
1992-
self.assertRegex(proc.out.decode(), textwrap.dedent(r"""
1992+
stdout = proc.out.decode().replace('\r', '')
1993+
self.assertRegex(stdout, textwrap.dedent(r"""
19931994
\A
19941995
ASCII parrot\n
19951996
ascii: len=12, data=[^\n]*\n

0 commit comments

Comments
 (0)