Fix unit test coverage issues for wrappertask

Copy and paste fail.

Change-Id: Ib3e5144d81fda7598e41e92f425b489d2cfc9a46
This commit is contained in:
Zane Bitter 2013-05-08 17:12:34 +02:00
parent 2fa218502e
commit 66e3cddc05
1 changed files with 3 additions and 9 deletions

View File

@ -529,8 +529,6 @@ class WrapperTaskTest(mox.MoxTestBase):
def test_cancel(self):
def child_task():
yield
try:
yield
except GeneratorExit:
@ -541,7 +539,7 @@ class WrapperTaskTest(mox.MoxTestBase):
@scheduler.wrappertask
def parent_task():
try:
yield DummyTask()()
yield child_task()
except GeneratorExit:
raise
else:
@ -553,8 +551,6 @@ class WrapperTaskTest(mox.MoxTestBase):
def test_cancel_exit(self):
def child_task():
yield
try:
yield
except GeneratorExit:
@ -565,7 +561,7 @@ class WrapperTaskTest(mox.MoxTestBase):
@scheduler.wrappertask
def parent_task():
try:
yield DummyTask()()
yield child_task()
except GeneratorExit:
raise
else:
@ -577,8 +573,6 @@ class WrapperTaskTest(mox.MoxTestBase):
def test_cancel_parent_exit(self):
def child_task():
yield
try:
yield
except GeneratorExit:
@ -589,7 +583,7 @@ class WrapperTaskTest(mox.MoxTestBase):
@scheduler.wrappertask
def parent_task():
try:
yield DummyTask()()
yield child_task()
except GeneratorExit:
return
else: