diff options
author | John Szakmeister <john@szakmeister.net> | 2014-03-27 16:25:08 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2014-03-27 16:25:08 -0400 |
commit | 0ffb07aae4032d010f3b2c9f26834f8b7fb9c578 (patch) | |
tree | cf63c0ae0c9625820a7ba70d485e20374dec7128 | |
parent | 62736480ceaac9e694626bf2a170992dfe1bd5d9 (diff) | |
download | nose-0ffb07aae4032d010f3b2c9f26834f8b7fb9c578.tar.gz |
Disable test_concurrent_shared.
It simply causes too many problems with Travis and other build farms.
-rw-r--r-- | functional_tests/test_multiprocessing/test_concurrent_shared.py | 81 |
1 files changed, 42 insertions, 39 deletions
diff --git a/functional_tests/test_multiprocessing/test_concurrent_shared.py b/functional_tests/test_multiprocessing/test_concurrent_shared.py index a6fc203..db3bd61 100644 --- a/functional_tests/test_multiprocessing/test_concurrent_shared.py +++ b/functional_tests/test_multiprocessing/test_concurrent_shared.py @@ -1,39 +1,42 @@ -import os -import sys -import unittest - -import multiprocessing -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') - - # Need to call the base's setUp() routine to get the necessary output - # capturing. - MPTestBase.setUp(self) - - def runTest(self): - assert 'Ran 2 tests in 1.' in self.output, "make sure two tests use 1.x seconds (no more than 2 seconds)" - assert str(self.output).strip().endswith('OK') - - -class TestConcurrentSharedWithAutomaticProcessesCount(TestConcurrentShared): - """Make sure negative numbers are handled gracefully.""" - processes = -1 - - def setUp(self): - if multiprocessing.cpu_count() < 2: - raise unittest.SkipTest( - "At least 2 cpus required for this test; skipping") - - TestConcurrentShared.setUp(self) +# This test has been disabled because it's simply too unreliable. There are way +# too many issues with Travis and other build farms. + +# import os +# import sys +# import unittest +# +# import multiprocessing +# 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') +# +# # Need to call the base's setUp() routine to get the necessary output +# # capturing. +# MPTestBase.setUp(self) +# +# def runTest(self): +# assert 'Ran 2 tests in 1.' in self.output, "make sure two tests use 1.x seconds (no more than 2 seconds)" +# assert str(self.output).strip().endswith('OK') +# +# +# class TestConcurrentSharedWithAutomaticProcessesCount(TestConcurrentShared): +# """Make sure negative numbers are handled gracefully.""" +# processes = -1 +# +# def setUp(self): +# if multiprocessing.cpu_count() < 2: +# raise unittest.SkipTest( +# "At least 2 cpus required for this test; skipping") +# +# TestConcurrentShared.setUp(self) |