1 From 2ffb8088f24039aabef574b2680cb373fdb4604a Mon Sep 17 00:00:00 2001
2 From: Yuri Prezument <y@yprez.com>
3 Date: Tue, 23 Feb 2016 13:05:14 +0200
4 Subject: [PATCH] Remove failing test
6 Remove test_map_timeout_exception_handler_returns_false() test.
7 The functionality for this was removed in https://github.com/kennethreitz/grequests/commit/394cc
9 tests.py | 11 -----------
10 1 file changed, 11 deletions(-)
12 diff --git a/tests.py b/tests.py
13 index b3789e3..2b4ef0f 100644
16 @@ -130,17 +130,6 @@ def test_map_timeout_no_exception_handler(self):
17 self.assertTrue(responses[1].ok)
18 self.assertEqual(len(responses), 2)
20 - def test_map_timeout_exception_handler_returns_false(self):
22 - if you don't want your exceptions to show up in the map result
24 - def exception_handler(request, exception):
26 - reqs = [grequests.get(httpbin('delay/1'), timeout=0.001), grequests.get(httpbin('/'))]
27 - responses = grequests.map(reqs, exception_handler=exception_handler)
28 - self.assertTrue(responses[0].ok)
29 - self.assertEqual(len(responses), 1)
31 def test_map_timeout_exception_handler_no_return(self):
33 ensure default behaviour for a handler that returns None