]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
testing: Deprecate stop/wait
authorBen Darnell <ben@bendarnell.com>
Fri, 27 Apr 2018 16:45:26 +0000 (12:45 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 27 Apr 2018 17:08:24 +0000 (13:08 -0400)
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

index b73faee3940ebb3c320f5f7e73a6de6130011ee4..06fa8a1c1c8b1cf990c226867b266d4856c1e0bb 100644 (file)
@@ -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()