summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contextlib_async.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-36492: Fix passing special keyword arguments to some functions. ↵Serhiy Storchaka2019-04-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | (GH-12637) (GH-12645) The following arguments can be passed as keyword arguments for passing to other function if the corresponding required argument is passed as positional: - "func" in functools.partialmethod(), weakref.finalize(), profile.Profile.runcall(), cProfile.Profile.runcall(), bdb.Bdb.runcall(), trace.Trace.runfunc() and curses.wrapper(). - "function" in unittest.addModuleCleanup() and unittest.TestCase.addCleanup(). - "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor and concurrent.futures.ProcessPoolExecutor. - "callback" in contextlib.ExitStack.callback(), contextlib.AsyncExitStack.callback() and contextlib.AsyncExitStack.push_async_callback(). - "c" and "typeid" in multiprocessing.managers.Server.create(). - "obj" in weakref.finalize(). (cherry picked from commit 42a139ed88c487f325a241c6ee8b308b3c045975)
* bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. ↵Miss Islington (bot)2018-07-231-1/+1
| | | | | | | (GH-8381) (GH-8422) (cherry picked from commit db8e3a1e4476620b2b5aaf57acfc3ef58a08213b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-29302: Implement contextlib.AsyncExitStack. (#4790)Ilya Kulakov2018-01-251-1/+166
|
* bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412)Jelle Zijlstra2017-12-141-1/+48
|
* bpo-29679: Implement @contextlib.asynccontextmanager (#360)Jelle Zijlstra2017-05-011-0/+212