~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.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:
41
41
        """Upgrade simple v0.0.4 format to v6"""
42
42
        eq = self.assertEquals
43
43
        self.build_tree_contents(_upgrade1_template)
44
 
        upgrade('.')
45
 
        b = Branch.open('.')
 
44
        upgrade(u'.')
 
45
        b = Branch.open(u'.')
46
46
        eq(b._branch_format, 6)
47
47
        rh = b.revision_history()
48
48
        eq(rh,
66
66
        its contents."""
67
67
        eq = self.assertEquals
68
68
        self.build_tree_contents(_ghost_template)
69
 
        upgrade('.')
70
 
        b = Branch.open('.')
 
69
        upgrade(u'.')
 
70
        b = Branch.open(u'.')
71
71
        revision_id = b.revision_history()[1]
72
72
        rev = b.get_revision(revision_id)
73
73
        eq(len(rev.parent_ids), 2)