X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=eventlet%2Ftests%2Fstdlib%2Ftest_thread__boundedsem.py;fp=eventlet%2Ftests%2Fstdlib%2Ftest_thread__boundedsem.py;h=0000000000000000000000000000000000000000;hb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;hp=9e99dc475ef0deaebb26103d8c748a7f73745484;hpb=376ff3bfe7071cc0793184a378c4e74508fb0d97;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/eventlet/tests/stdlib/test_thread__boundedsem.py b/eventlet/tests/stdlib/test_thread__boundedsem.py deleted file mode 100644 index 9e99dc4..0000000 --- a/eventlet/tests/stdlib/test_thread__boundedsem.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Test that BoundedSemaphore with a very high bound is as good as unbounded one""" -from eventlet import semaphore -from eventlet.green import thread - - -def allocate_lock(): - return semaphore.Semaphore(1, 9999) - -original_allocate_lock = thread.allocate_lock -thread.allocate_lock = allocate_lock -original_LockType = thread.LockType -thread.LockType = semaphore.CappedSemaphore - -try: - import os.path - execfile(os.path.join(os.path.dirname(__file__), 'test_thread.py')) -finally: - thread.allocate_lock = original_allocate_lock - thread.LockType = original_LockType