Skip to content

Commit

Permalink
skip SCF IO test if GSL not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWagg committed Sep 21, 2023
1 parent 633b3d4 commit 35e5ca2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gala/potential/potential/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import astropy.units as u
from astropy.utils.data import get_pkg_data_filename
import numpy as np
import pytest

# Project
from ..io import load, save
Expand All @@ -13,6 +14,7 @@
from ..builtin.special import LM10Potential
from ...scf import SCFPotential
from ....units import DimensionlessUnitSystem, galactic
from gala._cconfig import GSL_ENABLED


def test_read_plummer():
Expand Down Expand Up @@ -123,6 +125,8 @@ def test_units(tmpdir):
p = load(tmp_filename)


@pytest.mark.skipif(not GSL_ENABLED,
reason="requires GSL to run this test")
def test_read_write_SCF(tmpdir):
tmp_filename = str(tmpdir.join("potential.yml"))

Expand Down

0 comments on commit 35e5ca2

Please sign in to comment.