Commit 492b8f9
Migrate conftest.py to pytest-asyncio 1.x
The session-scoped event_loop fixture override is no longer honored
in pytest-asyncio 1.x. Replace it with `asyncio_default_fixture_loop_scope`
and `asyncio_default_test_loop_scope` set to session in pytest.ini, and
convert async_sandbox_factory to an async fixture that yields and awaits
sandbox cleanup directly instead of calling run_until_complete from a
sync finalizer.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 20ef3ce commit 492b8f9
2 files changed
Lines changed: 11 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 45 | | |
59 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
63 | 52 | | |
64 | 53 | | |
65 | 54 | | |
66 | 55 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 56 | + | |
76 | 57 | | |
77 | 58 | | |
78 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
79 | 63 | | |
80 | 64 | | |
81 | 65 | | |
| |||
0 commit comments