diff --git a/python/tests/test_Result.py b/python/tests/test_Result.py index 09f4ba46b..dffb08623 100644 --- a/python/tests/test_Result.py +++ b/python/tests/test_Result.py @@ -309,7 +309,10 @@ class TestResult: default.disallow_modification() time.sleep(2.) - default.add_calculation('sigma','#sigma#*0.0+311.','not the Cauchy stress') + try: + default.add_calculation('sigma','#sigma#*0.0+311.','not the Cauchy stress') + except ValueError: + pass with h5py.File(default.fname,'r') as f: # h5py3 compatibility try: