Skip to content

Commit

Permalink
only import if PINT is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDJohnson committed Oct 17, 2024
1 parent a702e0e commit 39bda59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
from tests.enterprise_test_data import datadir
from tests.enterprise_test_data import LIBSTEMPO_INSTALLED, PINT_INSTALLED

import pint.models.timing_model
from pint.models import get_model_and_toas
if PINT_INSTALLED:
import pint.models.timing_model
from pint.models import get_model_and_toas


@pytest.mark.skipif(not LIBSTEMPO_INSTALLED, reason="Skipping tests that require libstempo because it isn't installed")
Expand Down

0 comments on commit 39bda59

Please sign in to comment.