diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2010-10-28 09:43:10 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2010-10-28 09:43:10 (GMT) |
commit | 3be00037d65178644b20a826f68eb3d0b25ccb5f (patch) | |
tree | 31d7ff67d789c0ca1fc0ce927afaa0fb5afe5714 /Lib/test/test_threading.py | |
parent | 65ffae0aa3b31f26503182cbc7cd79943b6b8ff5 (diff) | |
download | cpython-3be00037d65178644b20a826f68eb3d0b25ccb5f.zip cpython-3be00037d65178644b20a826f68eb3d0b25ccb5f.tar.gz cpython-3be00037d65178644b20a826f68eb3d0b25ccb5f.tar.bz2 |
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 62ad4af..a453ccc 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__": |