Don't mark them for deletion in 6.0. They're used extensively in the
test suite and it's fairly harmless to keep them around.
Keyword arguments or a single positional argument passed to `stop()` are
saved and will be returned by `wait()`.
+
+ .. deprecated:: 5.1
+
+ `stop` and `wait` are deprecated; use ``@gen_test`` instead.
"""
assert _arg is None or not kwargs
self.__stop_args = kwargs or _arg
.. versionchanged:: 3.1
Added the ``ASYNC_TEST_TIMEOUT`` environment variable.
+
+ .. deprecated:: 5.1
+
+ `stop` and `wait` are deprecated; use ``@gen_test`` instead.
"""
if timeout is None:
timeout = get_async_test_timeout()