From ba4458d502762815c7d9f35a46a382f440d3ab67 Mon Sep 17 00:00:00 2001 From: nejucomo Date: Sun, 20 Jan 2008 20:10:31 -0700 Subject: [PATCH] tahoe_fuse: system test: webapi connection: bug fix and small log output change. --- contrib/fuse/runtests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/fuse/runtests.py b/contrib/fuse/runtests.py index 97b8d481..078cfbfe 100644 --- a/contrib/fuse/runtests.py +++ b/contrib/fuse/runtests.py @@ -212,11 +212,11 @@ class SystemTest (object): conn = httplib.HTTPConnection('127.0.0.1', client.port) conn.request('PUT', '/uri?t=mkdir') resp = conn.getresponse() - if resp.status == '200': + if resp.status == 200: return resp.read().strip() else: # FIXME: This output can be excessive! - print 'HTTP %s reponse while attempting to make node.' % resp.status + print 'HTTP %r reponse while attempting to make node.' % (resp.status,) print resp.read() return False # make another polling attempt... -- 2.45.2