/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_conflicts.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
    tests,
20
20
    workingtree,
21
21
    )
22
 
from breezy.sixish import PY3
23
22
from breezy.tests import script, features
24
23
 
25
24
 
98
97
        make_tree_with_conflicts(self, "branch", prefix=u"\xA7")
99
98
        out, err = self.run_bzr(["conflicts", "-d", "branch"],
100
99
                                encoding=self.encoding)
101
 
        self.assertEqual(out if PY3 else out.decode(self.encoding),
 
100
        self.assertEqual(out,
102
101
                         u"Text conflict in \xA7_other_file\n"
103
102
                         u"Path conflict: \xA7dir3 / \xA7dir2\n"
104
103
                         u"Text conflict in \xA7file\n")
109
108
        make_tree_with_conflicts(self, "branch", prefix=u"\xA7")
110
109
        out, err = self.run_bzr(["conflicts", "-d", "branch", "--text"],
111
110
                                encoding=self.encoding)
112
 
        self.assertEqual(out if PY3 else out.decode(self.encoding),
 
111
        self.assertEqual(out,
113
112
                         u"\xA7_other_file\n"
114
113
                         u"\xA7file\n")
115
114
        self.assertEqual(err, "")