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):