/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__groupcompress.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:
27
27
from .scenarios import (
28
28
    load_tests_apply_scenarios,
29
29
    )
30
 
from ..sixish import (
31
 
    indexbytes,
32
 
    )
33
30
from . import (
34
31
    features,
35
32
    )
470
467
        self.assertEqual(expected, data)
471
468
 
472
469
    def assertDecode(self, exp_offset, exp_length, exp_newpos, data, pos):
473
 
        cmd = indexbytes(data, pos)
 
470
        cmd = data[pos]
474
471
        pos += 1
475
472
        out = _groupcompress_py.decode_copy_instruction(data, cmd, pos)
476
473
        self.assertEqual((exp_offset, exp_length, exp_newpos), out)