Ignore:
Timestamp:
Mar 5, 2018, 5:12:30 PM (4 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
committer:
Ralph Meijer <ralphm@ik.nu> 1520266418 -3600
hg-git-rename-source:
git
Message:

Use incremental instead of t.p.versions everywhere

twisted.python.versions is a precursor of the incremental library
but isn't fully API compatible. This caused breakage with older Twisted
versions. Switching to incremental everywhere resolves this. Also fix
the version to at least 16.9.0, which introduced the release_candidate
parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_generic.py

    r238 r240  
    1414from twisted.python import deprecate
    1515from twisted.python.compat import unicode
    16 from twisted.python.versions import Version
    1716from twisted.trial import unittest
    1817from twisted.trial.util import suppress as SUPPRESS
    1918from twisted.words.xish import domish
    2019from twisted.words.protocols.jabber.jid import JID
     20
     21from incremental import Version
    2122
    2223from wokkel import generic
     
    326327                             deprecate.getDeprecationWarningString(
    327328                                 generic.prepareIDNName,
    328                                  Version("Wokkel", 18, 0, 0, release_candidate=3),
     329                                 Version("wokkel", 18, 0, 0, release_candidate=4),
    329330                                 replacement="unicode.encode('idna')")))]
    330331
     
    334335        prepareIDNName is deprecated.
    335336        """
    336         self.callDeprecated((Version("Wokkel", 18, 0, 0, release_candidate=3),
     337        self.callDeprecated((Version("wokkel", 18, 0, 0, release_candidate=4),
    337338                             "unicode.encode('idna')"),
    338339                            generic.prepareIDNName, ("example.com"))
Note: See TracChangeset for help on using the changeset viewer.