Commit 2ce13b9 1 parent 4ecc963 commit 2ce13b9 Copy full SHA for 2ce13b9
File tree 3 files changed +39
-1
lines changed
3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ Version history
3
3
4
4
This library adheres to `Semantic Versioning 2.0 <http://semver.org/ >`_.
5
5
6
+ **UNRELEASED **
7
+
8
+ - Fixed regression caused by (`#807 <https://github.com/agronholm/anyio/pull/807 >`_)
9
+ that prevented the use of parametrized async fixtures.
10
+
11
+ **4.6.1 **
12
+
13
+ This release contains all the changes from both v4.5.1 and v4.6.0, plus:
14
+
15
+ - Fixed TaskGroup and CancelScope producing cyclic references in tracebacks
16
+ when raising exceptions (`#806 <https://github.com/agronholm/anyio/pull/806 >`_)
17
+ (PR by @graingert)
18
+
6
19
**4.6.0 **
7
20
8
21
This release is the successor to v4.5.0 with Python 3.8 support dropped, and does not
@@ -22,6 +35,11 @@ contain the changes from v4.5.1.
22
35
- Fixed inconsistent task uncancellation with asyncio cancel scopes belonging to a
23
36
task group when said task group has child tasks running
24
37
38
+ **4.5.2 **
39
+
40
+ - Fixed regression caused by (`#807 <https://github.com/agronholm/anyio/pull/807 >`_)
41
+ that prevented the use of parametrized async fixtures.
42
+
25
43
**4.5.1 **
26
44
27
45
As Python 3.8 support was dropped in v4.6.0, this interim release was created to bring a
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def wrapper(
91
91
kwargs ["anyio_backend" ] = anyio_backend
92
92
93
93
if has_request_arg :
94
- kwargs ["request" ] = anyio_backend
94
+ kwargs ["request" ] = request
95
95
96
96
with get_runner (backend_name , backend_options ) as runner :
97
97
if isasyncgenfunction (local_func ):
Original file line number Diff line number Diff line change @@ -541,3 +541,23 @@ def test_no_mark(fixt):
541
541
542
542
result = testdir .runpytest (* pytest_args )
543
543
result .assert_outcomes (passed = len (get_all_backends ()) + 1 )
544
+
545
+
546
+ def test_async_fixture_params (testdir : Pytester ) -> None :
547
+ testdir .makepyfile (
548
+ """
549
+ import inspect
550
+ import pytest
551
+
552
+ @pytest.fixture(params=[1, 2])
553
+ async def fixt(request):
554
+ return request.param
555
+
556
+ @pytest.mark.anyio
557
+ async def test_params(fixt):
558
+ assert fixt in (1, 2)
559
+ """
560
+ )
561
+
562
+ result = testdir .runpytest (* pytest_args )
563
+ result .assert_outcomes (passed = len (get_all_backends ()) * 2 )
You can’t perform that action at this time.
0 commit comments