Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1091)

Issue 54590044: tasks.wait_for() does not cancel the task in case of timeout

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by gjcarneiro
Modified:
10 years, 3 months ago
Reviewers:
haypo_gmail
Visibility:
Public.

Description

tasks.wait_for() does not cancel the task in case of timeout

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -18 lines) Patch
M asyncio/tasks.py View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/test_tasks.py View 1 2 chunks +15 lines, -16 lines 0 comments Download

Messages

Total messages: 1
haypo_gmail
10 years, 3 months ago (2014-01-21 01:52:10 UTC) #1
https://codereview.appspot.com/54590044/diff/1/tests/test_tasks.py
File tests/test_tasks.py (right):

https://codereview.appspot.com/54590044/diff/1/tests/test_tasks.py#newcode378
tests/test_tasks.py:378: self.assertTrue(fut.done())
You should check that the future was cancelled, check for example the
cancelled() method?

https://codereview.appspot.com/54590044/diff/1/tests/test_tasks.py#newcode409
tests/test_tasks.py:409: self.assertTrue(fut.done())
Ditto
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b