Skip to content

Commit

Permalink
Fixed an integration test for Python 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Frolov committed Sep 24, 2015
1 parent 91286bf commit 8bdeac1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integration/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ def basic_nonstandard_characters(self):
def nonprinting_bytes(self):
# Seriously non-printing characters (i.e. non UTF8) also don't
# asplode
run(b"echo '\xff'")
try:
run(b"echo '\xff'")
except TypeError:
if sys.version_info > (3, 0) and sys.version_info < (3, 3):
# Python 3.2 is known to raise TypeError here
pass
else:
raise

def nonprinting_bytes_pty(self):
if WINDOWS:
Expand Down

0 comments on commit 8bdeac1

Please sign in to comment.