projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d48f90
)
test_mutable.Version.test_debug: use splitlines() to fix buildslaves
author
Brian Warner
<warner@lothar.com>
Sun, 28 Aug 2011 06:47:28 +0000
(23:47 -0700)
committer
Brian Warner
<warner@lothar.com>
Sun, 28 Aug 2011 06:47:28 +0000
(23:47 -0700)
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
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_mutable.py
b/src/allmydata/test/test_mutable.py
index ce91a3778d668b0da9cc195ca2d3ad43de89e5c9..028dbd8f09b59a9e0335a5426f209823c1270c34 100644
(file)
--- 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().split
lines
()
expected = self.nm.default_encoding_parameters["n"]
self.failUnlessEqual(len(sharefiles), expected)
d.addCallback(_debug)