def test_generator_open_stopiteration(self):
        generator = (Image(sine_array(0,i)) for i in range(10))
        dmap=DynamicMap(generator)
        for i in range(10):
            el = next(dmap)
            self.assertEqual(type(el), Image)
        try:
            el = next(dmap)
            raise AssertionError("StopIteration not raised when expected")
        except Exception as e:
            if e.__class__ != StopIteration:
                raise AssertionError(e % "StopIteration was expected, got %s")
dataset/ETHPy150Open ioam/holoviews/tests/testdynamic.py/DynamicTestGeneratorOpen.test_generator_open_stopiteration/swapped operands of `%`