def test_outside_bounds_numbergen(self):
        t1 = TestPO1()
        # Test bounds (dynamic number)
        t1.x = numbergen.UniformRandom(lbound=2,ubound=3)  # bounds not checked on set
        try:
            t1.x
        except __HOLE__:
            pass
        else:
            assert False, "Should raise ValueError."
dataset/ETHPy150Open ioam/param/tests/testparameterizedobject.py/TestNumberParameter.test_outside_bounds_numbergen