Skip to content

Commit

Permalink
Pin pytest-asyncio to version 0.21.1
Browse files Browse the repository at this point in the history
Prevents issue reported here and revert is the suggested way:
pytest-dev/pytest-asyncio#706

Tests in this repository are not affected at the moment because event
loops are used only in function scope fixtures but this prevents
possible confusion in the future when that would not be the case.
  • Loading branch information
Cynerd committed Apr 9, 2024
1 parent 57a3a67 commit a0b78bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion flake.nix
Expand Up @@ -16,7 +16,9 @@
with nixpkgs.lib; let
pyproject = trivial.importTOML ./pyproject.toml;

pypy2nix_map = {};
pypy2nix_map = {
"pytest-asyncio" = "pytest-asyncio_0_21";
};
list2attr = list: attr: attrValues (getAttrs list attr);
pypi2nix = list:
list2attr (map (n: let
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -33,7 +33,7 @@ dependencies = [
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-asyncio == 0.21.1",
"pytest-cov",
]
docs = [
Expand Down

0 comments on commit a0b78bb

Please sign in to comment.