summaryrefslogtreecommitdiff
path: root/functional_tests/test_multiprocessing
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2013-01-20 06:38:18 -0500
committerJohn Szakmeister <john@szakmeister.net>2013-01-20 06:38:18 -0500
commit1956e6b886ed784102951cf6fc7be52267857e78 (patch)
tree4dd686e16c1537b4534865e8c33b01601f132ef5 /functional_tests/test_multiprocessing
parent92b8f96da6d6785a0669f5710360a975228e4deb (diff)
downloadnose-1956e6b886ed784102951cf6fc7be52267857e78.tar.gz
Disable a timing test under PyPy.
The warm-up time is just too long.
Diffstat (limited to 'functional_tests/test_multiprocessing')
-rw-r--r--functional_tests/test_multiprocessing/test_concurrent_shared.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/functional_tests/test_multiprocessing/test_concurrent_shared.py b/functional_tests/test_multiprocessing/test_concurrent_shared.py
index 629493e..200c461 100644
--- a/functional_tests/test_multiprocessing/test_concurrent_shared.py
+++ b/functional_tests/test_multiprocessing/test_concurrent_shared.py
@@ -1,12 +1,22 @@
import os
+import sys
+import unittest
from test_multiprocessing import MPTestBase
+
+is_pypy = '__pypy__' in sys.builtin_module_names
+
+
class TestConcurrentShared(MPTestBase):
processes = 2
suitepath = os.path.join(os.path.dirname(__file__), 'support',
'concurrent_shared')
+ def setUp(self):
+ if is_pypy:
+ raise unittest.SkipTest('pypy warm-up is too slow; skipping')
+
def runTest(self):
assert 'Ran 2 tests in 1.' in self.output, "make sure two tests use 1.x seconds (no more than 2 seconsd)"
assert str(self.output).strip().endswith('OK')