From 25319d56f5f706ddade79ffbd69c0bbd13fe283b Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Tue, 3 Dec 2024 06:07:46 -0800 Subject: [PATCH] Backport PR #1785: (fix): upper bound `pytest` (#1788) Co-authored-by: Ilan Gold --- pyproject.toml | 2 +- src/anndata/_io/specs/registry.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3cc1b31a3..eeff608b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,7 @@ doc = [ dev-doc = ["towncrier>=24.8.0"] # release notes tool test = [ "loompy>=3.0.5", - "pytest>=8.2", + "pytest>=8.2,<8.3.4", "pytest-cov>=2.10", "zarr<3.0.0a0", "matplotlib", diff --git a/src/anndata/_io/specs/registry.py b/src/anndata/_io/specs/registry.py index ca13f8e59..798b812d4 100644 --- a/src/anndata/_io/specs/registry.py +++ b/src/anndata/_io/specs/registry.py @@ -130,7 +130,6 @@ def get_write( if dest_type is h5py.File: dest_type = h5py.Group - if (dest_type, src_type, modifiers) not in self.write: raise IORegistryError._from_write_parts(dest_type, src_type, modifiers) internal = self.write[(dest_type, src_type, modifiers)]