/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_symbol_versioning.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import warnings
20
20
 
21
21
from breezy import symbol_versioning
22
 
from breezy.sixish import PY3
23
22
from breezy.symbol_versioning import (
24
23
    deprecated_function,
25
24
    deprecated_in,
70
69
        return 1
71
70
 
72
71
    def test_deprecated_static(self):
73
 
        if PY3:
74
 
            expected_warning = (
75
 
                "breezy.tests.test_symbol_versioning.TestDeprecationWarnings."
76
 
                "deprecated_static "
77
 
                "was deprecated in version 0.7.0.", DeprecationWarning, 2)
78
 
        else:
79
 
            # XXX: The results are not quite right because the class name is not
80
 
            # shown on Python 2- however it is enough to give people a good indication of
81
 
            # where the problem is.
82
 
            expected_warning = (
83
 
                "breezy.tests.test_symbol_versioning."
84
 
                "deprecated_static "
85
 
                "was deprecated in version 0.7.0.", DeprecationWarning, 2)
 
72
        expected_warning = (
 
73
            "breezy.tests.test_symbol_versioning.TestDeprecationWarnings."
 
74
            "deprecated_static "
 
75
            "was deprecated in version 0.7.0.", DeprecationWarning, 2)
86
76
        expected_docstring = (
87
77
            'Deprecated static.\n'
88
78
            '\n'