Skip to content
Permalink
Browse files

Label expected LB error messages

  • Loading branch information...
jngrad committed Mar 13, 2019
1 parent 318ffb5 commit eff77ad884cf4b4971b023c344995d79f0ddb92c
Showing with 3 additions and 0 deletions.
  1. +3 −0 testsuite/python/lb.py
@@ -19,6 +19,7 @@
import itertools
import unittest as ut
import numpy as np
import sys

import espressomd
import espressomd.lb
@@ -205,6 +206,7 @@ def test_incompatible_agrid(self):
local_box_l aren't integer multiples of agrid.
"""
self.system.actors.clear()
print("Testing LB error messages:", file=sys.stderr)
self.lbf = self.lb_class(
visc=self.params['viscosity'],
dens=self.params['dens'],
@@ -213,6 +215,7 @@ def test_incompatible_agrid(self):
ext_force_density=[0, 0, 0])
with self.assertRaises(Exception):
self.system.actors.add(self.lbf)
print("End of LB error messages", file=sys.stderr)

@ut.skipIf(not espressomd.has_features("EXTERNAL_FORCES"),
"Features not available, skipping test!")

0 comments on commit eff77ad

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.