Skip to content

Commit

Permalink
TST: skip doctests for py39
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jun 21, 2024
1 parent b6d3316 commit 79ed81b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ depends = begin
deps =
pytest
h5py
pint
!py39: pint
!py39: astropy!=6.1.1
coverage[toml]>=5.0
pytest-cov
Expand All @@ -32,6 +32,14 @@ commands =
pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --doctest-rst --basetemp={envtmpdir}
coverage report --omit='.tox/*'

[testenv:py39]
# skip doctest on py39 because doctests require numpy>=2.0 and all optional deps,
# but some of our optional deps (pint, astropy) don't have a version that support
# both numpy>=2.0 and Python 3.9
commands=
pytest --cov=unyt --cov-append --basetemp={envtmpdir}
coverage report --omit='.tox/*'

[testenv:py39-versions]
deps =
docutils
Expand Down

0 comments on commit 79ed81b

Please sign in to comment.