1 """Test that BoundedSemaphore with a very high bound is as good as unbounded one"""
2 from eventlet import coros
3 from eventlet.green import thread
7 return coros.semaphore(1, 9999)
9 original_allocate_lock = thread.allocate_lock
10 thread.allocate_lock = allocate_lock
11 original_LockType = thread.LockType
12 thread.LockType = coros.CappedSemaphore
16 execfile(os.path.join(os.path.dirname(__file__), 'test_thread.py'))
18 thread.allocate_lock = original_allocate_lock
19 thread.LockType = original_LockType