From: Ben Darnell Date: Sat, 17 May 2014 14:17:01 +0000 (-0400) Subject: Document gen_test change. X-Git-Tag: v4.0.0b1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c511857608a176165bfbada3fc2df192fc367382;p=thirdparty%2Ftornado.git Document gen_test change. --- 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()