~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_parents.py

Fix non ascii symlink handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        os.symlink(u'\u03a9','tree1/link_name')
246
246
        tree.add(['link_name'],['link-id'])
247
247
 
248
 
        try:
249
 
            # the actual commit occurs without errors (strangely):
250
 
            revision1 = tree.commit('added a link to a Unicode target')
251
 
            # python 2.4 failed with UnicodeDecodeError on this commit:
252
 
            revision2 = tree.commit('this revision will be discarded')
253
 
            # python 2.5 failed with UnicodeEncodeError on set_parent_ids:
254
 
            tree.set_parent_ids([revision1])
255
 
        except (UnicodeEncodeError, UnicodeDecodeError):
256
 
            raise KnownFailure('there is no support for'
257
 
                               ' symlinks to non-ASCII targets (bug #272444)')
 
248
        # the actual commit occurs without errors (strangely):
 
249
        revision1 = tree.commit('added a link to a Unicode target')
 
250
        # python 2.4 failed with UnicodeDecodeError on this commit:
 
251
        revision2 = tree.commit('this revision will be discarded')
 
252
        # python 2.5 failed with UnicodeEncodeError on set_parent_ids:
 
253
        tree.set_parent_ids([revision1])
258
254
 
259
255
 
260
256
class TestAddParent(TestParents):