diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2010-10-28 09:43:10 +0000 |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2010-10-28 09:43:10 +0000 |
commit | 0502ba55a0582d701244d2d4dabc65db93c3e51b (patch) | |
tree | c7f39f43aa0f33932167c68cb6d9644e4e90943d /Lib/test/test_threading.py | |
parent | dddee0bea0d91dff6b3522849dd9b40e09180291 (diff) | |
download | cpython-0502ba55a0582d701244d2d4dabc65db93c3e51b.tar.gz |
issue 8777
Add threading.Barrier
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 62ad4af7ec..a453ccc490 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -555,6 +555,8 @@ class SemaphoreTests(lock_tests.SemaphoreTests): class BoundedSemaphoreTests(lock_tests.BoundedSemaphoreTests): semtype = staticmethod(threading.BoundedSemaphore) +class BarrierTests(lock_tests.BarrierTests): + barriertype = staticmethod(threading.Barrier) def test_main(): test.support.run_unittest(LockTests, PyRLockTests, CRLockTests, EventTests, @@ -563,6 +565,7 @@ def test_main(): ThreadTests, ThreadJoinOnShutdown, ThreadingExceptionTests, + BarrierTests ) if __name__ == "__main__": |