Skip to content

Commit

Permalink
Merge ddd44c9 into eb9c306
Browse files Browse the repository at this point in the history
  • Loading branch information
scfc committed Sep 29, 2023
2 parents eb9c306 + ddd44c9 commit 02c4e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_unicode.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os
import platform
import tempfile
import sys
Expand Down Expand Up @@ -124,11 +125,13 @@ def open(fname, mode, **kwargs):
# ensure the 'send' log is correct,
with open(filename_send, 'r', encoding='utf-8') as f:
self.assertEqual(f.read(), msg + '\n\x04')
os.unlink(filename_send)

# ensure the 'read' log is correct,
with open(filename_read, 'r', encoding='utf-8', newline='') as f:
output = f.read().replace(_CAT_EOF, '')
self.assertEqual(output, (msg + '\r\n')*2 )
os.unlink(filename_read)


def test_spawn_expect_ascii_unicode(self):
Expand Down

0 comments on commit 02c4e74

Please sign in to comment.