Skip to content

Commit

Permalink
Fix flake8 too
Browse files Browse the repository at this point in the history
  • Loading branch information
oremanj committed Dec 12, 2019
1 parent e505a7d commit a8360ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tricycle/_tests/test_multi_cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def test_shielding(autojump_clock: trio.testing.MockClock) -> None:

async def shield_child_on_creation() -> None:
try:
with parent.open_child(shield=True) as child:
with parent.open_child(shield=True):
await trio.sleep(1)
assert False # pragma: no cover
finally:
Expand Down Expand Up @@ -145,7 +145,7 @@ async def shield_child_when_parent_shielded() -> None:
try:
with trio.CancelScope(shield=True):
await trio.sleep(0.3)
with parent.open_child() as child:
with parent.open_child():
await trio.sleep(1)
finally:
with trio.CancelScope(shield=True):
Expand Down

0 comments on commit a8360ed

Please sign in to comment.