[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #23033 [Obfuscation/BridgeDB]: BridgeDB's tests are failing due to Twisted Trial changing the way modules are called
#23033: BridgeDB's tests are failing due to Twisted Trial changing the way modules
are called
-------------------------------------+-------------------------------------
Reporter: isis | Owner: isis
Type: defect | Status: new
Priority: High | Milestone:
Component: | Version:
Obfuscation/BridgeDB | Keywords: bridgedb-test,
Severity: Normal | bridgedb-ci
Actual Points: | Parent ID: #23032
Points: | Reviewer:
Sponsor: SponsorM |
-------------------------------------+-------------------------------------
This is happening after the upgrade to Debian 9, because Twisted was
upgraded from 14.0.2 to 16.6.0. Relative imports of helper functions in
the unittests directory [https://travis-
ci.org/isislovecruft/bridgedb/jobs/256269715 are now broken]:
{{{
[ERROR]
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7.13/lib/python2.7/site-
packages/twisted/trial/runner.py", line 602, in loadByNames
things.append(self.findByName(name))
File "/home/travis/virtualenv/python2.7.13/lib/python2.7/site-
packages/twisted/trial/runner.py", line 405, in findByName
return filenameToModule(name)
File "/home/travis/virtualenv/python2.7.13/lib/python2.7/site-
packages/twisted/trial/runner.py", line 96, in filenameToModule
return _importFromFile(fn)
File "/home/travis/virtualenv/python2.7.13/lib/python2.7/site-
packages/twisted/trial/runner.py", line 119, in _importFromFile
module = imp.load_source(moduleName, fn, fd)
File "./test/test_translations.py", line 14, in <module>
from .https_helpers import DummyRequest
exceptions.ValueError: Attempted relative import in non-package
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23033>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs