From: Ben Darnell Date: Sun, 3 Nov 2013 21:20:01 +0000 (-0500) Subject: Fix --debug_gc option on python 3. X-Git-Tag: v3.2.0b1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36fb165ad4019f8c9e1223eebbba8c3260b4df37;p=thirdparty%2Ftornado.git Fix --debug_gc option on python 3. --- diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py index 2c8bb1db9..786bbf983 100644 --- a/tornado/test/runtests.py +++ b/tornado/test/runtests.py @@ -13,6 +13,11 @@ from tornado.netutil import Resolver from tornado.options import define, options, add_parse_callback from tornado.test.util import unittest +try: + reduce # py2 +except NameError: + from functools import reduce # py3 + TEST_MODULES = [ 'tornado.httputil.doctests', 'tornado.iostream.doctests',