diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-30 23:55:32 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-30 23:55:32 -0400 |
commit | 38c5e870a7883df0ae104df828217e326f6cff6a (patch) | |
tree | c58d5437c4637df427c29bae3e543ea37f324d74 /test/engine/test_pool.py | |
parent | 1eaa003e023aa477ff43262050757e9bfd642c20 (diff) | |
download | sqlalchemy-38c5e870a7883df0ae104df828217e326f6cff6a.tar.gz |
mark the tests that seem to be segfauling py3k+coverage so that we can exclude them
at the nose command line
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r-- | test/engine/test_pool.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 981df6dd0..5b64a9f31 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -786,6 +786,7 @@ class QueuePoolTest(PoolTestBase): except tsa.exc.TimeoutError: assert int(time.time() - now) == 2 + @testing.requires.threading_with_mock def test_timeout_race(self): # test a race condition where the initial connecting threads all race # to queue.Empty, then block on the mutex. each thread consumes a @@ -861,6 +862,7 @@ class QueuePoolTest(PoolTestBase): lazy_gc() assert not pool._refs + @testing.requires.threading_with_mock def test_waiters_handled(self): """test that threads waiting for connections are handled when the pool is replaced. @@ -897,6 +899,7 @@ class QueuePoolTest(PoolTestBase): time.sleep(2) eq_(len(success), 12) + @testing.requires.threading_with_mock @testing.requires.python26 def test_notify_waiters(self): dbapi = MockDBAPI() @@ -964,9 +967,11 @@ class QueuePoolTest(PoolTestBase): c3 = p.connect() assert c3.connection is c2_con + @testing.requires.threading_with_mock def test_no_overflow(self): self._test_overflow(40, 0) + @testing.requires.threading_with_mock def test_max_overflow(self): self._test_overflow(40, 5) @@ -1144,9 +1149,11 @@ class QueuePoolTest(PoolTestBase): class SingletonThreadPoolTest(PoolTestBase): + @testing.requires.threading_with_mock def test_cleanup(self): self._test_cleanup(False) + @testing.requires.threading_with_mock def test_cleanup_no_gc(self): self._test_cleanup(True) |