~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_export.py

  • Committer: Vincent Ladeuil
  • Date: 2009-04-06 14:01:16 UTC
  • mto: (4241.10.1 bzr.1.14)
  • mto: This revision was merged to the branch mainline in revision 4267.
  • Revision ID: v.ladeuil+lp@free.fr-20090406140116-zkbvjtaxfhbql4l4
Fix unicode related OSX failures.

* bzrlib/tests/test_export.py: 
Fix imports.

* bzrlib/tests/blackbox/test_export.py:
(TestExport.test_tar_export_unicode,
TestExport.test_zip_export_unicode): Use a less problematic
unicode char for OSX.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
    def test_tar_export_unicode(self):
69
69
        tree = self.make_branch_and_tree('tar')
70
 
        fname = u'\xe5.txt'
 
70
        # FIXME: using fname = u'\xe5.txt' below triggers a bug revealed since
 
71
        # bzr.dev revno 4216 but more related to OSX/working trees/unicode than
 
72
        # export itself.
 
73
        fname = u'\N{Euro Sign}.txt'
71
74
        try:
72
75
            self.build_tree(['tar/' + fname])
73
76
        except UnicodeError:
108
111
 
109
112
    def test_zip_export_unicode(self):
110
113
        tree = self.make_branch_and_tree('zip')
111
 
        fname = u'\xe5.txt'
 
114
        fname = u'\N{Euro Sign}.txt'
112
115
        try:
113
116
            self.build_tree(['zip/' + fname])
114
117
        except UnicodeError: