summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-14 12:46:42 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-11-14 12:46:42 (GMT)
commit19e69c5a2067fe6322ead88733ebbca77673010b (patch)
treea16cdb8e1d9e80a4c47d8aa0702cc616afb1d3ea /Lib/test/test_threading.py
parentd226d308a3856e67c654ff3d5924be6d24568388 (diff)
downloadcpython-19e69c5a2067fe6322ead88733ebbca77673010b.zip
cpython-19e69c5a2067fe6322ead88733ebbca77673010b.tar.gz
cpython-19e69c5a2067fe6322ead88733ebbca77673010b.tar.bz2
Issue #23883: Add missing APIs to __all__; patch by Jacek KoƂodziej
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 3b11bf6..45564f7 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -18,6 +18,7 @@ import os
import subprocess
from test import lock_tests
+from test import support
# Between fork() and exec(), only async-safe functions are allowed (issues
@@ -1098,5 +1099,12 @@ class BoundedSemaphoreTests(lock_tests.BoundedSemaphoreTests):
class BarrierTests(lock_tests.BarrierTests):
barriertype = staticmethod(threading.Barrier)
+class MiscTestCase(unittest.TestCase):
+ def test__all__(self):
+ extra = {"ThreadError"}
+ blacklist = {'currentThread', 'activeCount'}
+ support.check__all__(self, threading, ('threading', '_thread'),
+ extra=extra, blacklist=blacklist)
+
if __name__ == "__main__":
unittest.main()