Rev 2919: Prepare for fixing bug #157752 (so close to a palindrome...) in file:///v/home/vila/src/bzr/bugs/127164/

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Oct 29 17:36:36 GMT 2007


At file:///v/home/vila/src/bzr/bugs/127164/

------------------------------------------------------------
revno: 2919
revision-id:v.ladeuil+lp at free.fr-20071029173634-yxcis9vbrv60t3z9
parent: v.ladeuil+lp at free.fr-20071019131948-g5793d6onl5ik5sm
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 127164
timestamp: Mon 2007-10-29 18:36:34 +0100
message:
  Prepare for fixing bug #157752 (so close to a palindrome...)
  
  * bzrlib/transport/ftp.py:
  (get_test_permutations): Add a dummy FPTServer so that the test
  suite reports the skipped tests.
modified:
  bzrlib/transport/ftp.py        ftp.py-20051116161804-58dc9506548c2a53
-------------- next part --------------
=== modified file 'bzrlib/transport/ftp.py'
--- a/bzrlib/transport/ftp.py	2007-10-19 13:19:48 +0000
+++ b/bzrlib/transport/ftp.py	2007-10-29 17:36:34 +0000
@@ -560,4 +560,10 @@
         from bzrlib.tests import FTPServer
         return [(FtpTransport, FTPServer.FTPServer)]
     else:
-        return []
+        # Dummy server to have the test suite report the number of tests
+        # needing that feature.
+        class FTPServer(object):
+            def setUp(self):
+                raise tests.UnavailableFeature(tests.FTPServerFeature)
+
+        return [(FtpTransport, FTPServer)]



More information about the bazaar-commits mailing list