From 0178cf01af6b4d4e0ae074f4f9783a5d210f1faf Mon Sep 17 00:00:00 2001 From: Bryn Lloyd Date: Wed, 13 Oct 2021 09:38:48 +0200 Subject: [PATCH] BUG: failing test - only pythonic api knows PathLike paths --- Wrapping/Generators/Python/Tests/extras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wrapping/Generators/Python/Tests/extras.py b/Wrapping/Generators/Python/Tests/extras.py index 6d305cb0753..16419b2ab11 100644 --- a/Wrapping/Generators/Python/Tests/extras.py +++ b/Wrapping/Generators/Python/Tests/extras.py @@ -207,7 +207,7 @@ def custom_callback(name, progress): assert png_io.GetFileName() == filename # test reading image series -series_reader = itk.ImageSeriesReader.New(FileNames=[pathlib.Path(filename), pathlib.Path(filename)]) +series_reader = itk.ImageSeriesReader.New(FileNames=[filename, filename]) series_reader.Update() assert series_reader.GetOutput().GetImageDimension() == 3 assert series_reader.GetOutput().GetLargestPossibleRegion().GetSize()[2] == 2 @@ -227,7 +227,7 @@ def custom_callback(name, progress): assert series_reader.GetOutput().GetImageDimension() == 3 # test reading image series with itk.imread() -image_series = itk.imread([filename, filename]) +image_series = itk.imread([pathlib.Path(filename), pathlib.Path(filename)]) assert image_series.GetImageDimension() == 3 # Numeric series filename generation without any integer index. It is