]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Document gen_test change.
authorBen Darnell <ben@bendarnell.com>
Sat, 17 May 2014 14:17:01 +0000 (10:17 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 17 May 2014 14:17:01 +0000 (10:17 -0400)
docs/releases/next.rst
tornado/testing.py

index a8faf16b063e7cd66a11b2fbef096dfcba2410ea..ef644ffedc93637811f8850b90d1277511e09142 100644 (file)
@@ -164,6 +164,8 @@ Backwards-compatibility notes
   previously result in the test silently being skipped).
 * Better stack traces are now displayed when a test times out.
 * Fixed the test suite when ``unittest2`` is installed on Python 3.
+* The ``@gen_test`` decorator now passes along ``*args, **kwargs`` so it
+  can be used on functions with arguments.
 
 `tornado.web`
 ~~~~~~~~~~~~~
index 8967a43a01990605dbeb4faa16d3386a6e5a81fc..4bf37b89d7a95872d20db27caee0246e7e90fa46 100644 (file)
@@ -457,6 +457,10 @@ def gen_test(func=None, timeout=None):
     .. versionadded:: 3.1
        The ``timeout`` argument and ``ASYNC_TEST_TIMEOUT`` environment
        variable.
+
+    .. versionchanged:: 3.3
+       The wrapper now passes along ``*args, **kwargs`` so it can be used
+       on functions with arguments.
     """
     if timeout is None:
         timeout = get_async_test_timeout()