From c5116b70dd41fd8a48f91046cc4e4dcd5bce08fe Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 1 Sep 2020 21:55:36 -0500 Subject: [PATCH] quickfix for conv() in test_calendar --- Lib/test/test_calendar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 6241d114d..fd39c4093 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -787,7 +787,9 @@ class LeapdaysTestCase(unittest.TestCase): def conv(s): - return s.replace('\n', os.linesep).encode() + # XXX RUSTPYTHON TODO: TextIOWrapper newline translation + return s.encode() + # return s.replace('\n', os.linesep).encode() class CommandLineTestCase(unittest.TestCase): def run_ok(self, *args):