Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90cb6f2

Browse files
committed
patch cail for tests
1 parent 70ff037 commit 90cb6f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_client_functional.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ def handler(request):
639639

640640

641641
@asyncio.coroutine
642-
def test_timeout_on_reading_data(loop, test_client):
642+
def test_timeout_on_reading_data(loop, test_client, mocker):
643+
mocker.patch('aiohttp.helpers.ceil').side_effect = ceil
643644

644645
@asyncio.coroutine
645646
def handler(request):
@@ -661,6 +662,8 @@ def handler(request):
661662

662663
@asyncio.coroutine
663664
def test_timeout_none(loop, test_client, mocker):
665+
mocker.patch('aiohttp.helpers.ceil').side_effect = ceil
666+
664667
@asyncio.coroutine
665668
def handler(request):
666669
resp = web.StreamResponse()

0 commit comments

Comments
 (0)