def test_wrong_initial_size(self):
        # Give a clear error message if an array variable changes size at
        # runtime compared to its initial value used to size the framework arrays

        t = set_as_top(ArrayAsmb())

        t.source.out = np.zeros(2)

        try:
            t.run()
        except __HOLE__ as err:
            self.assertEqual(str(err),
                             "Array size mis-match in 'source.out'. Initial shape was (2,) but found size (5,) at runtime")
        else:
            self.fail('RuntimeError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_system.py/TestArrayConnectErrors.test_wrong_initial_size