Skip to content

Commit 244ff21

Browse files
committed
* fix test
1 parent 3d2b26e commit 244ff21

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
asyncclick (1:8.0.3-6) unstable; urgency=medium
2+
3+
* fix test
4+
5+
-- Matthias Urlichs <[email protected]> Sat, 15 Jan 2022 22:22:34 +0100
6+
17
asyncclick (1:8.0.3-5) unstable; urgency=medium
28

39
* enter_context => with_resource

tests/test_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def cli():
218218
ctx = click.Context(cli)
219219

220220
async with ctx.scope():
221-
rv = await ctx.enter_async_context(manager())
221+
rv = await ctx.with_async_resource(manager())
222222
assert rv[0] == 1, rv
223223

224224
# Internal
@@ -242,7 +242,7 @@ def cli():
242242
ctx = click.Context(cli)
243243

244244
async with ctx.scope():
245-
rv = ctx.enter_context(manager())
245+
rv = ctx.with_resource(manager())
246246
assert rv[0] == 1, rv
247247

248248
# Internal

0 commit comments

Comments
 (0)