From 4367e567349348d9820b55767f1a9622a9acfc30 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 13 Nov 2013 21:30:18 +0100 Subject: [PATCH] fix Python 3.3 --- specs/test_guard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/test_guard.py b/specs/test_guard.py index f1ed61c..ae76044 100644 --- a/specs/test_guard.py +++ b/specs/test_guard.py @@ -51,7 +51,7 @@ class TestGuard(unittest.TestCase): rv = bob.post('/new?uri=test', data=self.data) assert rv.status_code == 403 - assert "ratelimit exceeded" in rv.data + assert "ratelimit exceeded" in rv.get_data(as_text=True) alice = self.makeClient("1.2.3.4", 2) for i in range(2): @@ -78,7 +78,7 @@ class TestGuard(unittest.TestCase): rv = client.post("/new?uri=%s" % url, data=self.data) assert rv.status_code == 403 - assert "direct responses to" in rv.data + assert "direct responses to" in rv.get_data(as_text=True) def testSelfReply(self):