- better python errors

This commit is contained in:
w.pomp
2026-07-13 17:53:52 +02:00
parent 916d301f1b
commit 25d2070ac3
5 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ from ndbioimage import Imread
for path in (Path(__file__).parent / "files").iterdir()
if path.is_dir() and path.name != "czi_xml"
for file in path.iterdir()
if not file.suffix == ".pzl"
if file.suffix.lower() not in [".pzl", ".xml", "", ".txt"]
],
)
def test_open(file):
+1 -1
View File
@@ -18,7 +18,7 @@ def array():
@pytest.fixture()
def image(array):
with tempfile.TemporaryDirectory() as folder:
file = Path(folder) / "tiff" / "test.tif"
file = Path(folder) / "test.tif"
tiffwrite(file, array, "yxczt")
with Imread(file, axes="yxczt") as im:
yield im