merging johns integration to mine..

Robert Collins robertc at robertcollins.net
Mon Jan 2 22:01:05 GMT 2006


Hi John,
	during the merge I caught some VWS issues :).

But more importantly you had this:

    def setUp(self):
        TestCaseInTempDir.setUp(self)
        if not paramiko_loaded:
            raise TestSkipped('you must have paramiko to run this test')


If the setUp fails, then tearDown is not invoked:
the right way to do this as per our test enhancing spec isn't coded yet,
but if you are tweaking setUp to abort, do so before any base class code
runs:

    def setUp(self):
        if not paramiko_loaded:
            raise TestSkipped('you must have paramiko to run this test')
        TestCaseInTempDir.setUp(self)


Also, PEP8-:
+    def check_mode(test, path, mode):
+        """On win32 chmod doesn't have any effect, 
+        so don't actually check anything
+        """


Probably would be better with a docstring like:
    def check_mode(test, path, mode):
        """Win32 does not have modes - do nothing."""

But the code looks to me like a if block in a single function would
actually be easier to read.

Other than that, I've merged your integration to my integration.

Cheers,
Rob



-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060103/f2899dcb/attachment.pgp 


More information about the bazaar mailing list