summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2010-10-28 09:43:10 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2010-10-28 09:43:10 (GMT)
commit3be00037d65178644b20a826f68eb3d0b25ccb5f (patch)
tree31d7ff67d789c0ca1fc0ce927afaa0fb5afe5714 /Lib/test/test_threading.py
parent65ffae0aa3b31f26503182cbc7cd79943b6b8ff5 (diff)
downloadcpython-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.py3
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__":