summaryrefslogtreecommitdiff
path: root/tests/test_performance.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-10-14 16:53:36 -0700
committerThomas Kluyver <takowl@gmail.com>2013-10-14 16:53:36 -0700
commitb6b4a821233716b662cefe7d89dcfd3e922add87 (patch)
tree9da6fae7be4a1f50b6066da952e71fc7fdc274a0 /tests/test_performance.py
parentc9b0b6ac40b5dea4084302d6dbcc4c4e28cf414f (diff)
downloadpexpect-git-b6b4a821233716b662cefe7d89dcfd3e922add87.tar.gz
Longer search window for performance tests.
len("100000\r\n>>> ") > 10
Diffstat (limited to 'tests/test_performance.py')
-rwxr-xr-xtests/test_performance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_performance.py b/tests/test_performance.py
index 9725ec1..9754e56 100755
--- a/tests/test_performance.py
+++ b/tests/test_performance.py
@@ -56,7 +56,7 @@ class PerformanceTestCase (PexpectTestCase.PexpectTestCase):
e.sendline(self._iter_n(n))
self.assertEqual(e.expect(r'\.{3}'), 0)
e.sendline(b'')
- self.assertEqual(e.expect([b'inquisition', '%d' % n], searchwindowsize=10), 1)
+ self.assertEqual(e.expect([b'inquisition', '%d' % n], searchwindowsize=20), 1)
def exact_range(self, n):
e = pexpect.spawn('python')
@@ -72,7 +72,7 @@ class PerformanceTestCase (PexpectTestCase.PexpectTestCase):
e.sendline(self._iter_n(n))
self.assertEqual(e.expect_exact([b'...']), 0)
e.sendline(b'')
- self.assertEqual(e.expect_exact([b'inquisition', '%d' % n], searchwindowsize=10), 1)
+ self.assertEqual(e.expect_exact([b'inquisition', '%d' % n], searchwindowsize=20), 1)
def faster_range(self, n):
e = pexpect.spawn('python')