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

  • Committer: Martin
  • Date: 2017-06-09 16:31:49 UTC
  • mto: This revision was merged to the branch mainline in revision 6673.
  • Revision ID: gzlist@googlemail.com-20170609163149-liveiasey25480q6
Make InventoryDeltaError use string formatting, and repr for fileids

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import zlib
21
21
 
22
 
from bzrlib import chunk_writer
23
 
from bzrlib.tests import TestCaseWithTransport
 
22
from .. import chunk_writer
 
23
from . import TestCaseWithTransport
24
24
 
25
25
 
26
26
class TestWriter(TestCaseWithTransport):
72
72
        lines = []
73
73
        for group in range(48):
74
74
            offset = group * 50
75
 
            numbers = range(offset, offset + 50)
 
75
            numbers = list(range(offset, offset + 50))
76
76
            # Create a line with this group
77
77
            lines.append(''.join(map(str, numbers)) + '\n')
78
78
        writer = chunk_writer.ChunkWriter(4096)
93
93
        lines = []
94
94
        for group in range(48):
95
95
            offset = group * 50
96
 
            numbers = range(offset, offset + 50)
 
96
            numbers = list(range(offset, offset + 50))
97
97
            # Create a line with this group
98
98
            lines.append(''.join(map(str, numbers)) + '\n')
99
99
        writer = chunk_writer.ChunkWriter(4096, 256)