~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: Vincent Ladeuil
  • Date: 2010-02-24 09:41:32 UTC
  • mto: (5055.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5056.
  • Revision ID: v.ladeuil+lp@free.fr-20100224094132-kvlqqd55b0dadbl6
Add a FIXME about using osutils.getcwd()

Show diffs side-by-side

added added

removed removed

Lines of Context:
438
438
        if not (backing_server is None or
439
439
                isinstance(backing_server, test_server.LocalURLServer)):
440
440
            raise AssertionError(
441
 
                "backing_server should not be %r, because this can only serve the "
442
 
                "local current working directory." % (backing_server,))
 
441
                'backing_server should not be %r, because this can only serve '
 
442
                'the local current working directory.' % (backing_server,))
443
443
        self._original_vendor = ssh._ssh_vendor_manager._cached_ssh_vendor
444
444
        ssh._ssh_vendor_manager._cached_ssh_vendor = self._vendor
 
445
        # FIXME: the following block should certainly just be self._homedir =
 
446
        # osutils.getcwd() but that fails badly on Unix -- vila 20100224
445
447
        if sys.platform == 'win32':
446
448
            # Win32 needs to use the UNICODE api
447
449
            self._homedir = os.getcwdu()