[Debian-med-packaging] Bug#912583: simpleitk fails it's tests with Python 3.7

Matthias Klose doko at debian.org
Thu Nov 1 14:36:05 GMT 2018


Package: src:simpleitk
Version: 1.0.1-2
Severity: serious
Tags: sid buster

simpleitk fails it's tests with Python 3.7, with python3-defaults from experimental.

E...
======================================================================
ERROR: test_2d (__main__.TestImageIndexingInterface)
testing __getitem__ for 2D image
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/SimpleITK-build/Wrapping/Python/SimpleITK.py", line
4448, in __iter__
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/Testing/Unit/ImageIndexingTest.py", line 87, in test_2d
    self.assertImageNDArrayEquals(img[-4:-1:-2,-2:-1:1],nda[-2:-1:1,-4:-1:-2])
  File "/<<PKGBUILDDIR>>/Testing/Unit/ImageIndexingTest.py", line 35, in
assertImageNDArrayEquals
    for p,n in zip(img, nda.flat):
RuntimeError: generator raised StopIteration

----------------------------------------------------------------------
Ran 4 tests in 0.289s

FAILED (errors=1)
itkTestDriver: Process exited with return value: 1

        Start 940: Python.Test.IOTest
937/944 Test #940: Python.Test.IOTest
...........................................................................
Passed    0.53 sec
        Start 941: Python.Test.Numpy
938/944 Test #941: Python.Test.Numpy
............................................................................
Passed    0.80 sec
        Start 942: Python.Test.ProcessObject
939/944 Test #942: Python.Test.ProcessObject
....................................................................   Passed
0.64 sec
        Start 943: Python.Test.ConcurrentImageRead
940/944 Test #919: SliceImageFilterTests.PhysicalPoint1
.........................................................   Passed   21.96 sec
        Start 944: Python.Test.ArrayView
941/944 Test #944: Python.Test.ArrayView
........................................................................
Passed    3.16 sec
942/944 Test #920: SliceImageFilterTests.PhysicalPoint2
.........................................................   Passed   28.82 sec
943/944 Test #818: sitkRegistrationMethodTest.Optimizer_ScalesEstimator
.........................................   Passed   47.62 sec
944/944 Test #943: Python.Test.ConcurrentImageRead
..............................................................   Passed   29.34 sec

99% tests passed, 1 tests failed out of 944

Total Test time (real) = 323.31 sec

The following tests FAILED:
	939 - Python.Test.ImageIndexing (Failed)
Errors while running CTest
make[2]: *** [Makefile:144: test] Error 8



More information about the Debian-med-packaging mailing list