mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej
This commit is contained in:
parent
d226d308a3
commit
19e69c5a20
15 changed files with 111 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue