Skip to content

Commit

Permalink
fix unittests when meshb not available
Browse files Browse the repository at this point in the history
  • Loading branch information
xgarnaud committed Mar 14, 2024
1 parent 633b2ed commit e013b1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytucanos/test_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import numpy as np
import unittest
from .mesh import Mesh22, get_square, Mesh33, get_cube
from .field import read_solb
from . import HAVE_MESHB
if HAVE_MESHB:
from .field import read_solb


@unittest.skipUnless(HAVE_MESHB, "The libMeshb interface is not available")
Expand Down

0 comments on commit e013b1d

Please sign in to comment.