From 101ca8dfe4bf7338ce839a288af6f7d077cc7e51 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 27 Aug 2011 23:47:28 -0700 Subject: [PATCH] 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. --- src/allmydata/test/test_mutable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2