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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 19:47:19 UTC
  • mfrom: (7178 work)
  • mto: This revision was merged to the branch mainline in revision 7179.
  • Revision ID: jelmer@jelmer.uk-20181116194719-m5ut2wfuze5x9s1p
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
class TextPath(TestCaseInTempDir):
44
44
 
45
45
    def test_text_file(self):
46
 
        with open('boo', 'wb') as f: f.write(b'ab' * 2048)
 
46
        with open('boo', 'wb') as f:
 
47
            f.write(b'ab' * 2048)
47
48
        check_text_path('boo')
48
 
        with open('boo', 'wb') as f: f.write(b'a' * 1023 + b'\x00')
 
49
        with open('boo', 'wb') as f:
 
50
            f.write(b'a' * 1023 + b'\x00')
49
51
        self.assertRaises(BinaryFile, check_text_path, 'boo')