diff --git a/test/test_spaces/test_rg_space.py b/test/test_spaces/test_rg_space.py index c3faada1e2f385b5ac3c9fc99759f3597ccedc1c..946ac2e4831112bf8012a2e4d3332206829c63dd 100644 --- a/test/test_spaces/test_rg_space.py +++ b/test/test_spaces/test_rg_space.py @@ -27,6 +27,7 @@ from numpy.testing import assert_, assert_equal, assert_almost_equal from nifty import RGSpace from test.common import expand from itertools import product +from nose.plugins.skip import SkipTest # [shape, zerocenter, distances, harmonic, expected] CONSTRUCTOR_CONFIGS = [ @@ -158,7 +159,10 @@ class RGSpaceFunctionalityTests(unittest.TestCase): (4, 6, 8), (17, 5, 3)], [True, False])) def test_hermitianize_inverter(self, shape, zerocenter): - r = RGSpace(shape, harmonic=True, zerocenter=zerocenter) + try: + r = RGSpace(shape, harmonic=True, zerocenter=zerocenter) + except ValueError: + raise SkipTest v = distributed_data_object(global_shape=shape, dtype=np.complex128) v[:] = np.random.random(shape) + 1j*np.random.random(shape) inverted = r.hermitianize_inverter(v, axes=range(len(shape)))