/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: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

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)