~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision_info.py

[patch] use unicode literals for all hardcoded paths (Alexander Belchenko)

> When you use flat string on Windows for base part of file names then all
> derived file names is always representing as flat string. On Linux/Cygwin as
> I can see in situations when path cannot be represented as flat string (or in
> ascii encoding?) it silently converted to unicode. As result we have
> different behaviour with non-ascii (non-english) file names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        """Test that 'bzr revision-info' reports the correct thing.
43
43
        """
44
44
 
45
 
        b = Branch.initialize('.')
 
45
        b = Branch.initialize(u'.')
46
46
 
47
47
        b.working_tree().commit('Commit one', rev_id='a@r-0-1')
48
48
        b.working_tree().commit('Commit two', rev_id='a@r-0-2')
85
85
    def test_cat_revision(self):
86
86
        """Test bzr cat-revision.
87
87
        """
88
 
        b = Branch.initialize('.')
 
88
        b = Branch.initialize(u'.')
89
89
 
90
90
        b.working_tree().commit('Commit one', rev_id='a@r-0-1')
91
91
        b.working_tree().commit('Commit two', rev_id='a@r-0-2')