Skip to content
Permalink
Browse files

Merge pull request #2588 from jngrad/LB-error-msg

Label expected LB error messages
  • Loading branch information...
fweik committed Mar 14, 2019
2 parents 53d18aa + eff77ad commit e0477bfece95328225ada188c75d850d202ca258
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 e0477bf

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.