From: Ben Darnell Date: Fri, 27 Apr 2018 16:45:26 +0000 (-0400) Subject: testing: Deprecate stop/wait X-Git-Tag: v5.1.0b1~21^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c702cf56b37980183dd9676c3489c9700e2b4d6b;p=thirdparty%2Ftornado.git 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. --- 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()