From c702cf56b37980183dd9676c3489c9700e2b4d6b Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 27 Apr 2018 12:45:26 -0400 Subject: [PATCH] testing: Deprecate stop/wait 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. --- tornado/testing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tornado/testing.py b/tornado/testing.py index b73faee39..06fa8a1c1 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -279,6 +279,10 @@ class AsyncTestCase(unittest.TestCase): 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 @@ -300,6 +304,10 @@ class AsyncTestCase(unittest.TestCase): .. 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() -- 2.47.2