/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: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

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
22
23
from breezy.symbol_versioning import (
23
24
    deprecated_function,
24
25
    deprecated_in,
69
70
        return 1
70
71
 
71
72
    def test_deprecated_static(self):
72
 
        expected_warning = (
73
 
            "breezy.tests.test_symbol_versioning.TestDeprecationWarnings."
74
 
            "deprecated_static "
75
 
            "was deprecated in version 0.7.0.", DeprecationWarning, 2)
 
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)
76
86
        expected_docstring = (
77
87
            'Deprecated static.\n'
78
88
            '\n'