Commit 29c526a
committed
fix: add conditional pytest-asyncio dependencies for pytest 9.0+ compatibility
Address CodeRabbit review comment: pytest-asyncio 0.26.0 does not support
pytest 9.0+. According to pytest-asyncio changelog, explicit support for
pytest 9 was added in version 1.3.0+.
Changes:
- Add conditional pytest-asyncio dependencies matching pytest versions:
- Python <3.10: pytest-asyncio>=0.26.0 (compatible with pytest 7.4.x)
- Python >=3.10: pytest-asyncio>=1.3.0 (required for pytest 9.0+)
- Update both requirements.txt and pyproject.toml
- Add comments explaining the version requirements
This ensures Python 3.10+ environments with pytest 9.0+ use a compatible
pytest-asyncio version, preventing runtime failures.
Fixes: CodeRabbit review comment on PR kinde-oss#1441 parent 6160041 commit 29c526a
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments