summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-06-01 20:25:42 -0700
committerThomas Kluyver <takowl@gmail.com>2014-06-01 20:40:26 -0700
commit68264e3a88c223e0f41450f39c356a0fea23ad82 (patch)
treeb74910aa7177c70e9ef296acbe3ce3c266867230
parent6250807565a200cb31a3aed1a56b73130b905cff (diff)
downloadpexpect-68264e3a88c223e0f41450f39c356a0fea23ad82.tar.gz
Skip performance tests on PyPy
-rwxr-xr-xtests/test_performance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_performance.py b/tests/test_performance.py
index 597c6f9..163e4f2 100755
--- a/tests/test_performance.py
+++ b/tests/test_performance.py
@@ -21,6 +21,7 @@ PEXPECT LICENSE
from __future__ import print_function
import unittest, time, sys
+import platform
import pexpect
from . import PexpectTestCase
@@ -81,6 +82,8 @@ class PerformanceTestCase (PexpectTestCase.PexpectTestCase):
self.assertEqual(e.expect([b'inquisition', '%d' % n]), 1)
def test_100000(self):
+ if platform.python_implementation() == 'PyPy':
+ raise unittest.SkipTest("This test fails on PyPy because of REPL differences")
print()
start_time = time.time()
self.plain_range (100000)