From 79ed81bc49a12d1db814e32fabb8fd4dc7e53d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 21 Jun 2024 11:19:59 +0200 Subject: [PATCH] TST: skip doctests for py39 --- tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 1a4ef0d6..4d2010d0 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ depends = begin deps = pytest h5py - pint + !py39: pint !py39: astropy!=6.1.1 coverage[toml]>=5.0 pytest-cov @@ -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