summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2014-03-16 19:21:39 -0700
committerjquast <contact@jeffquast.com>2014-03-16 19:21:39 -0700
commit652070633ee8b4e9ba4d8297e9be72d141d61ca4 (patch)
tree5f6c6a108db0c8a7079a0c494b87fdcf217f5eaa
parentc96d428aa85e7d547c4f7d56f9bca13a1443e772 (diff)
downloadpexpect-652070633ee8b4e9ba4d8297e9be72d141d61ca4.tar.gz
show only first 30 lines of hexdiff
-rwxr-xr-xtests/test_expect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py
index 14fddb3..c2e31b6 100755
--- a/tests/test_expect.py
+++ b/tests/test_expect.py
@@ -33,7 +33,7 @@ import signal
# This may not be true, but seems adequate for testing now.
# I should fix this at some point.
-# query: For some reason an extra newline occures under OS X evey
+# query: For some reason an extra newline occures under OS X every
# once in a while. Excessive uses of .replace resolve these
FILTER=''.join([(len(repr(chr(x)))==3) and chr(x) or '.' for x in range(256)])
@@ -50,7 +50,7 @@ def hex_diff(left, right):
diff = ['< %s\n> %s' % (_left, _right,) for _left, _right in zip(
hex_dump(left).splitlines(), hex_dump(right).splitlines())
if _left != _right]
- return '\n' + '\n'.join(diff,)
+ return u''.join('\n', '\n'.join(diff[:30],))
class assert_raises_msg(object):