/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/blackbox/test_command_encoding.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-17 09:43:24 UTC
  • mfrom: (7045.1.9 python3-o)
  • Revision ID: breezy.the.bot@gmail.com-20180717094324-sejdvmx3kha2zeq8
Fix another ~500 tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-o/+merge/349632

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from .. import TestCaseWithMemoryTransport
20
20
from ...commands import Command, register_command, plugin_cmds
 
21
from ...sixish import PY3
21
22
 
22
23
 
23
24
class cmd_echo_exact(Command):
72
73
        register_command(cmd_echo_strict)
73
74
        try:
74
75
            self.assertEqual('foo', bzr('echo-strict foo'))
75
 
            self.assertEqual(u'foo\xb5'.encode('utf-8'),
 
76
            expected = u'foo\xb5'
 
77
            if not PY3:
 
78
                expected = expected.encode('utf-8')
 
79
            self.assertEqual(expected,
76
80
                             bzr(['echo-strict', u'foo\xb5']))
77
81
        finally:
78
82
            plugin_cmds.remove('echo-strict')