Skip to content

Commit df9a59a

Browse files
committed
Fix test for pre-2.7 assertions
1 parent b9d94fd commit df9a59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tornado/test/simple_httpclient_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_connection_refused(self):
287287
self.http_client.fetch("http://localhost:1/", self.stop)
288288
response = self.wait()
289289
self.assertEqual(599, response.code)
290-
self.assertIn("Connection refused", str(response.error))
290+
self.assertTrue("Connection refused" in str(response.error))
291291

292292

293293
class CreateAsyncHTTPClientTestCase(AsyncTestCase, LogTrapTestCase):

0 commit comments

Comments
 (0)