~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_transport.py

Support Unicode paths for ftp transport (encoded as utf8).

* bzrlib/transport/ftp/__init__.py:
(FtpTransport._remote_path): Remove the work around, we send and
receive utf8 paths.

* bzrlib/tests/per_transport.py:
(TransportTests.test_unicode_paths): Check that the *server* can
support Unicode paths).

* bzrlib/tests/ftp_server/pyftpdlib_based.py:
(BzrConformingFS.ftp2fs): Added to decode utf8 received paths.

* bzrlib/tests/ftp_server/medusa_based.py:
(FTPTestServer): Declare that medusa can't support Unicode paths
in an had-hoc way.

* bzrlib/osutils.py:
(fancy_rename): Ensure all paths are unicode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1497
1497
                 u'\u65e5', # Kanji person
1498
1498
                ]
1499
1499
 
 
1500
        no_unicode_support = getattr(self._server, '_no_unicode_support', False)
 
1501
        if no_unicode_support:
 
1502
            raise TestSkipped("test server cannot handle unicode paths")
 
1503
 
1500
1504
        try:
1501
1505
            self.build_tree(files, transport=t, line_endings='binary')
1502
1506
        except UnicodeError: