From: david-sarah Date: Fri, 15 Jun 2012 23:20:28 +0000 (+0000) Subject: Skip allmydata.test.test_system.Connections.test_rref unless we have foolscap >=... X-Git-Url: https://git.rkrishnan.org/vdrive/components/install.html?a=commitdiff_plain;h=3ab0f33413de23dd15270cdac8d5123d65606d67;p=tahoe-lafs%2Ftahoe-lafs.git Skip allmydata.test.test_system.Connections.test_rref unless we have foolscap >= 0.6.4, because of http://foolscap.lothar.com/trac/ticket/196 . refs #1636 --- diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index a9d20eaf..f69c5f74 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -14,6 +14,7 @@ from allmydata.immutable.literal import LiteralFileNode from allmydata.immutable.filenode import ImmutableFileNode from allmydata.util import idlib, mathutil from allmydata.util import log, base32 +from allmydata.util.verlib import NormalizedVersion from allmydata.util.encodingutil import quote_output, unicode_to_argv, get_filesystem_encoding from allmydata.util.fileutil import abspath_expanduser_unicode from allmydata.util.consumer import MemoryConsumer, download_to_data @@ -24,6 +25,8 @@ from allmydata.monitor import Monitor from allmydata.mutable.common import NotWriteableError from allmydata.mutable import layout as mutable_layout from allmydata.mutable.publish import MutableData + +import foolscap from foolscap.api import DeadReferenceError, fireEventually from twisted.python.failure import Failure from twisted.web.client import getPage @@ -1886,6 +1889,10 @@ class SystemTest(SystemTestMixin, RunBinTahoeMixin, unittest.TestCase): class Connections(SystemTestMixin, unittest.TestCase): def test_rref(self): + if NormalizedVersion(foolscap.__version__) < NormalizedVersion('0.6.4'): + raise unittest.SkipTest("skipped due to http://foolscap.lothar.com/trac/ticket/196 " + "(which does not affect normal usage of Tahoe-LAFS)") + self.basedir = "system/Connections/rref" d = self.set_up_nodes(2) def _start(ign):