summaryrefslogtreecommitdiff
path: root/tests/test_screen.py
diff options
context:
space:
mode:
authorDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-04 14:38:16 +0930
committerDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-04 14:38:16 +0930
commitcf3ad0db373029270477b80ef78a13f9d2f30488 (patch)
treee00be947613465d5a4967995a7eae905f1e5c2d3 /tests/test_screen.py
parentc0ed72e1cc57f5d90cdd358f61eb1e6b2a5b60e6 (diff)
downloadpexpect-git-cf3ad0db373029270477b80ef78a13f9d2f30488.tar.gz
Fix problems found in review.
Diffstat (limited to 'tests/test_screen.py')
-rwxr-xr-xtests/test_screen.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_screen.py b/tests/test_screen.py
index 9551a42..b013a6a 100755
--- a/tests/test_screen.py
+++ b/tests/test_screen.py
@@ -209,7 +209,7 @@ class screenTestCase (PexpectTestCase.PexpectTestCase):
def make_screen_with_box_utf8(self, *args, **kwargs):
'''Creates a screen containing a box drawn using double-line
line drawing characters. The characters are fed in as
- CP437. '''
+ UTF-8. '''
s = screen.screen (2,2,*args,**kwargs)
s.put_abs (1,1,b'\xe2\x95\x94')
s.put_abs (1,2,b'\xe2\x95\x97')
@@ -229,9 +229,7 @@ class screenTestCase (PexpectTestCase.PexpectTestCase):
# But we shouldn't be able to get an ASCII representation of
# the screen when errors=='strict':
- if PY3:
- assert str(s) == unicode_box_unicode_result
- else:
+ if not PY3:
try:
str(s)
self.fail ('Expected an encoding exception.')