/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_i18n.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for breezy.i18n"""
18
18
 
19
 
from breezy import (
 
19
import io
 
20
 
 
21
from .. import (
20
22
    i18n,
21
23
    tests,
22
24
    errors,
141
143
        tree = self.make_branch_and_tree('.')
142
144
        try:
143
145
            workingtree.WorkingTree.open('./foo')
144
 
        except errors.NotBranchError,e:
 
146
        except errors.NotBranchError as e:
145
147
            err = str(e)
146
148
        self.assertContainsRe(err, 
147
149
                              u"zz\xe5{{Not a branch: .*}}".encode("utf-8"))
148
150
 
149
151
    def test_topic_help_translation(self):
150
152
        """does topic help get translated?"""
151
 
        from breezy import help
152
 
        from StringIO import StringIO
153
 
        out = StringIO()
 
153
        from .. import help
 
154
        out = io.StringIO()
154
155
        help.help("authentication", out)
155
156
        self.assertContainsRe(out.getvalue(), "zz\xe5{{Authentication Settings")
156
157