python-tornado tests fail against python3.5

Bug #1478149 reported by Steve Langasek on 2015-07-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-tornado (Ubuntu)

Bug Description

The python-tornado package's autopkgtests fail now that python3.5 is enabled. Strangely this failure is not caught at package build time, only at autopkgtest run time.

=== python3.5 ===
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/test/", line 180, in <module>
  File "/usr/lib/python3/dist-packages/tornado/test/", line 169, in main
  File "/usr/lib/python3/dist-packages/tornado/", line 692, in main
    unittest.main(defaultTest="all", argv=argv, **kwargs)
  File "/usr/lib/python3.5/unittest/", line 93, in __init__
  File "/usr/lib/python3.5/unittest/", line 140, in parseArgs
  File "/usr/lib/python3.5/unittest/", line 147, in createTests
  File "/usr/lib/python3.5/unittest/", line 219, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/", line 219, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/", line 204, in loadTestsFromName
    test = obj()
  File "/usr/lib/python3/dist-packages/tornado/test/", line 60, in all
    return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)
  File "/usr/lib/python3.5/unittest/", line 219, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/", line 219, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/usr/lib/python3/dist-packages/tornado/test/", line 8, in <module>
    from tornado.auth import OpenIdMixin, OAuthMixin, OAuth2Mixin, TwitterMixin, AuthError
  File "/usr/lib/python3/dist-packages/tornado/", line 145, in <module>
    class OpenIdMixin(object):
  File "/usr/lib/python3/dist-packages/tornado/", line 155, in OpenIdMixin
  File "/usr/lib/python3/dist-packages/tornado/", line 428, in return_future
    replacer = ArgReplacer(f, 'callback')
  File "/usr/lib/python3/dist-packages/tornado/", line 287, in __init__
    self.arg_pos = inspect.getargspec(func).args.index(
  File "/usr/lib/python3.5/", line 1038, in getargspec
DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead

See for full details.

Steve Langasek (vorlon) wrote :

This currently blocks pycurl (and python3-defaults itself) from being promoted to wily. This may only be a bug in the testsuite rather than a runtime bug, but regardless it should be fixed in python-tornado prior to unblocking -proposed.

Changed in python-tornado (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in python-tornado (Ubuntu Wily):
assignee: nobody → Wesley Wiedenmeier (wesley-wiedenmeier)

Attaching a debdiff that applies the fixes from upstream

Changed in python-tornado (Ubuntu Wily):
assignee: Wesley Wiedenmeier (wesley-wiedenmeier) → nobody

Updated debdiff with LP: #1478149 in changelog

Martin Pitt (pitti) wrote :

This got fixed in python-tornado 4.2.1 which is in wily now, and the autopkgtests work fine with py3.5.


Changed in python-tornado (Ubuntu Wily):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers