Commit 1a15233d authored by Martin Bauer's avatar Martin Bauer
Browse files

Fix for pytest importorskip introduced in 2659b514

- test_serial_scenarios already tested if waLBerla is available by catching ImportErrors
- importorskip from pytest throws another exception, which is not part of the public API
-> catching all exceptions - which is not really elegant but works
parent 60d1b071
......@@ -134,7 +134,7 @@ def compare_lid_driven_cavity(optimization=MappingProxyType({}), action='Testing
from lbmpy_tests.walberla_scenario_setup import create_lid_driven_cavity as run_lid_driven_cavity_walberla
except ImportError:
except Exception:
run_lid_driven_cavity_walberla = None
return compare_scenario(run_ldc_lbmpy, run_lid_driven_cavity_walberla, optimization, action, name, plot, **kwargs)
......@@ -152,7 +152,7 @@ def compare_force_driven_channel(optimization=MappingProxyType({}), action='Test
from lbmpy_tests.walberla_scenario_setup import create_lid_driven_cavity as run_force_driven_channel_walberla
except ImportError:
except Exception:
run_force_driven_channel_walberla = None
return compare_scenario(lbmpy_func, run_force_driven_channel_walberla, optimization, action, name, plot, **kwargs)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment