From: Brian Warner Date: Sun, 28 Aug 2011 06:47:28 +0000 (-0700) Subject: test_mutable.Version.test_debug: use splitlines() to fix buildslaves X-Git-Tag: allmydata-tahoe-1.9.0a2~78 X-Git-Url: https://git.rkrishnan.org/specifications/class-simplejson.JSONDecoder.html?a=commitdiff_plain;h=101ca8dfe4bf7338ce839a288af6f7d077cc7e51;p=tahoe-lafs%2Ftahoe-lafs.git test_mutable.Version.test_debug: use splitlines() to fix buildslaves Any slave running in a directory with spaces in the name was miscounting shares, causing the test to fail. --- diff --git a/src/allmydata/test/test_mutable.py b/src/allmydata/test/test_mutable.py index ce91a377..028dbd8f 100644 --- a/src/allmydata/test/test_mutable.py +++ b/src/allmydata/test/test_mutable.py @@ -2969,7 +2969,7 @@ class Version(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin, \ fso.stdout = StringIO() fso.stderr = StringIO() debug.find_shares(fso) - sharefiles = fso.stdout.getvalue().split() + sharefiles = fso.stdout.getvalue().splitlines() expected = self.nm.default_encoding_parameters["n"] self.failUnlessEqual(len(sharefiles), expected) d.addCallback(_debug)