From 017db5932d8285ea4e5aa4a0fe5f2923f43b179c Mon Sep 17 00:00:00 2001 From: Christopher Foo Date: Thu, 7 Aug 2014 00:46:58 -0400 Subject: [PATCH] app_test.py: Use coroutine version of fetch Avoid tornado getting confused and stopping/starting the ioloop incorrectly --- wpull/app_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpull/app_test.py b/wpull/app_test.py index 4932b143..b69bf8a5 100644 --- a/wpull/app_test.py +++ b/wpull/app_test.py @@ -87,7 +87,7 @@ def test_one_page(self): exit_code = yield app.run() self.assertTrue(os.path.exists('index.html')) - response = self.fetch('/') + response = yield self.http_client.fetch(self.get_url('/')) with open('index.html', 'rb') as in_file: self.assertEqual(response.body, in_file.read())