Opened 7 years ago

#6825 defect new

twisted.python.test.test_release fails with Twisted Web not available

Reported by: Arfrever Frehtes Taifersar Arahesis Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Arfrever Frehtes Taifersar Arahesis Branch:
Author:

Description

twisted.python.test.test_release in Twisted >=13.2.0 imports twisted.web.microdom module, which fails when Twisted Web is not available.

I attach the patch.

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-core-13.2.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/trial/runner.py", line 498, in loadPackage
    module = modinfo.load()
  File "/var/tmp/portage/dev-python/twisted-core-13.2.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/python/modules.py", line 383, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/var/tmp/portage/dev-python/twisted-core-13.2.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/python/_reflectpy3.py", line 266, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/var/tmp/portage/dev-python/twisted-core-13.2.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/python/_reflectpy3.py", line 213, in _importAndCheckStack
    reraise(excValue, excTraceback)
  File "/var/tmp/portage/dev-python/twisted-core-13.2.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/python/test/test_release.py", line 32, in <module>
    from twisted.web.microdom import parseXMLString
exceptions.ImportError: No module named web.microdom

twisted.python.test.test_release
-------------------------------------------------------------------------------
Ran 5532 tests in 204.995s

FAILED (skips=632, expectedFailures=4, errors=1, successes=4895)

Attachments (1)

twisted-core-13.2.0-test_release.patch (1.2 KB) - added by Arfrever Frehtes Taifersar Arahesis 7 years ago.

Download all attachments as: .zip

Change History (1)

Changed 7 years ago by Arfrever Frehtes Taifersar Arahesis

Note: See TracTickets for help on using tickets.