Ticket #6825: twisted-core-13.2.0-test_release.patch

File twisted-core-13.2.0-test_release.patch, 1.2 KB (added by Arfrever Frehtes Taifersar Arahesis, 7 years ago)
  • twisted/python/test/test_release.py

     
    2929from twisted.python.filepath import FilePath
    3030from twisted.python.versions import Version
    3131from twisted.test.testutils import XMLAssertionMixin
    32 from twisted.web.microdom import parseXMLString
    3332from twisted.python._release import (
    3433    _changeVersionInFile, getNextVersion, findTwistedProjects, replaceInFile,
    3534    replaceProjectVersion, Project, generateVersionFileData,
     
    4948try:
    5049    from twisted.lore.scripts import lore
    5150except ImportError:
    52     loreSkip = "Lore is not present."
     51    loreSkip = "Twisted Lore is not present."
    5352else:
    5453    loreSkip = skip
    5554
    5655
    5756try:
     57    from twisted.web.microdom import parseXMLString
     58except ImportError:
     59    webSkip = "Twisted Web is not present."
     60else:
     61    webSkip = skip
     62
     63
     64try:
    5865    import pydoctor.driver
    5966    # it might not be installed, or it might use syntax not available in
    6067    # this version of Python.
     
    22142221    @ivar sourceDir: A L{FilePath} representing a directory to be used for
    22152222        containing the source files for a Sphinx project.
    22162223    """
    2217     skip = sphinxSkip
     2224    skip = sphinxSkip or webSkip
    22182225
    22192226    confContent = """\
    22202227                  source_suffix = '.rst'