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

  • Committer: Jelmer Vernooij
  • Date: 2018-07-07 19:27:38 UTC
  • mto: (7027.4.10 python3-blackbox)
  • mto: This revision was merged to the branch mainline in revision 7038.
  • Revision ID: jelmer@jelmer.uk-20180707192738-cbt5f28lbd3lx4td
Add some more bees; support writing both bytes and unicode strings in build_tree_contents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
        contents = open('test', 'rb').read()
77
77
        if sys.platform == 'win32':
78
 
            self.assertEqual('foo\r\n', contents)
 
78
            self.assertEqual(b'foo\r\n', contents)
79
79
        else:
80
 
            self.assertEqual('foo\n', contents)
 
80
            self.assertEqual(b'foo\n', contents)
81
81
 
82
82
    def can_sys_preserve_mode(self):
83
83
        # PLATFORM DEFICIENCY/ TestSkipped