Skip to content

Commit

Permalink
move pytest import to avoid needing it in docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes committed May 14, 2024
1 parent fe411fd commit 693a8af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fiasco/tests/idl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Helpers for tests related to comparing with IDL output
"""
import pathlib
import pytest

from astropy.utils.data import get_pkg_data_path

Expand Down Expand Up @@ -61,6 +60,8 @@ def run_idl_script(idl_env, script, input_args, save_vars, file_name, version, f
file_path = get_idl_test_output_filepath(file_name, version)
if not file_path.is_file():
if idl_env is None:
# Import here so that this can be used without a hard pytest dependency
import pytest
pytest.skip("""To run the IDL comparison tests, you must:
1. Specify a path to a working IDL executable,
2. Specify a path to the CHIANTI IDL code,
Expand Down

0 comments on commit 693a8af

Please sign in to comment.