/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 bzrlib/tests/test_workingtree_4.py

  • Committer: Robert Collins
  • Date: 2007-03-07 09:11:10 UTC
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070307091110-ga6qtkb917x13a0j
Skip new tests that depend on unicode file paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
        tree.commit('a')
417
417
        tree.add(['b'], ['b-id'])
418
418
 
419
 
        tree.rename_one('a', u'b\xb5rry')
420
 
        self.assertEqual(u'b\xb5rry', tree.id2path('a-id'))
 
419
        try:
 
420
            tree.rename_one('a', u'b\xb5rry')
 
421
            new_path = u'b\xb5rry'
 
422
        except UnicodeEncodeError:
 
423
            # support running the test on non-unicode platforms
 
424
            tree.rename_one('a', 'c')
 
425
            new_path = 'c'
 
426
        self.assertEqual(new_path, tree.id2path('a-id'))
421
427
        tree.commit(u'b\xb5rry')
422
428
        tree.unversion(['a-id'])
423
429
        self.assertRaises(errors.NoSuchId, tree.id2path, 'a-id')