Rev 5057: Add a FIXME about using osutils.getcwd() in file:///home/vila/src/bzr/bugs/526221-failing-sftp-tests/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Feb 24 09:41:32 GMT 2010


At file:///home/vila/src/bzr/bugs/526221-failing-sftp-tests/

------------------------------------------------------------
revno: 5057
revision-id: v.ladeuil+lp at free.fr-20100224094132-kvlqqd55b0dadbl6
parent: v.ladeuil+lp at free.fr-20100223131447-w3dy3jelyiguaod4
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 526221-failing-sftp-tests
timestamp: Wed 2010-02-24 10:41:32 +0100
message:
  Add a FIXME about using osutils.getcwd()
-------------- next part --------------
=== modified file 'bzrlib/tests/stub_sftp.py'
--- a/bzrlib/tests/stub_sftp.py	2010-02-23 13:14:47 +0000
+++ b/bzrlib/tests/stub_sftp.py	2010-02-24 09:41:32 +0000
@@ -438,10 +438,12 @@
         if not (backing_server is None or
                 isinstance(backing_server, test_server.LocalURLServer)):
             raise AssertionError(
-                "backing_server should not be %r, because this can only serve the "
-                "local current working directory." % (backing_server,))
+                'backing_server should not be %r, because this can only serve '
+                'the local current working directory.' % (backing_server,))
         self._original_vendor = ssh._ssh_vendor_manager._cached_ssh_vendor
         ssh._ssh_vendor_manager._cached_ssh_vendor = self._vendor
+        # FIXME: the following block should certainly just be self._homedir =
+        # osutils.getcwd() but that fails badly on Unix -- vila 20100224
         if sys.platform == 'win32':
             # Win32 needs to use the UNICODE api
             self._homedir = os.getcwdu()



More information about the bazaar-commits mailing list