From c511857608a176165bfbada3fc2df192fc367382 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 17 May 2014 10:17:01 -0400 Subject: [PATCH] Document gen_test change. --- docs/releases/next.rst | 2 ++ tornado/testing.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/releases/next.rst b/docs/releases/next.rst index a8faf16b0..ef644ffed 100644 --- a/docs/releases/next.rst +++ b/docs/releases/next.rst @@ -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` ~~~~~~~~~~~~~ diff --git a/tornado/testing.py b/tornado/testing.py index 8967a43a0..4bf37b89d 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -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() -- 2.47.2