Skip to content

Commit 28978c0

Browse files
committed
Restrict pytest-asyncio to <1.0.0 for own CI tests
Looptime is conceptually incompatible with pytest-asyncio>=1.0.0, since the latter adds multi-scoped event loops, and looptime expects the event loop to be strictly function-scoped: it resets the time to 0 for every test, and patches the event loop on every test, so on. This requires a bigger rework of looptime. Meanwhile, let its own tests run with the older (compatible) versions of pytest-asyncio. Note that there is NO direct dependency on `pytest-asyncio`, so this restriction cannot be enforced in looptime's own dependencies. There could be different other prodivers of the `event_loop` fixture, in theory, of which pytest-asyncio is only one.
1 parent ecf06bd commit 28978c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ isort
99
mypy==0.920
1010
pre-commit
1111
pytest
12-
pytest-asyncio
12+
pytest-asyncio<1.0.0
1313
pytest-cov
1414
pytest-mock

0 commit comments

Comments
 (0)