From: Ben Darnell Date: Mon, 20 Aug 2012 02:31:15 +0000 (-0700) Subject: Fix test for pre-2.7 assertions X-Git-Tag: v2.4.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9a59a20a441d155f3a4170508eb15ae185bdd8;p=thirdparty%2Ftornado.git Fix test for pre-2.7 assertions --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index d792d2ea9..a9b541ea7 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -287,7 +287,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase): self.http_client.fetch("http://localhost:1/", self.stop) response = self.wait() self.assertEqual(599, response.code) - self.assertIn("Connection refused", str(response.error)) + self.assertTrue("Connection refused" in str(response.error)) class CreateAsyncHTTPClientTestCase(AsyncTestCase, LogTrapTestCase):