Skip to content

Commit

Permalink
Merge pull request #61 from WilliamJamieson/testing/time_delta_warning
Browse files Browse the repository at this point in the history
Fix `TimeDelta` warning
  • Loading branch information
WilliamJamieson committed Apr 15, 2022
2 parents c16fac5 + 4cf31aa commit 289df8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion asdf_astropy/converters/time/tests/test_time_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def create_time_deltas():
result.append(TimeDelta(Time.now() - Time.now(), format=format))

for scale in list(TimeDelta.SCALES) + [None]:
result.append(TimeDelta(0.125, scale=scale))
result.append(TimeDelta(0.125 * u.day, scale=scale))

return result

Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git+https://github.com/astropy/astropy
git+https://github.com/asdf-format/asdf
git+https://github.com/asdf-format/asdf-transform-schemas
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ deps =
numpy119: numpy==1.19.*
astropylts: astropy==5.0.*

devdeps: git+https://github.com/numpy/numpy
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: git+https://github.com/asdf-format/asdf
devdeps: git+https://github.com/asdf-format/asdf-transform-schemas#egg=asdf_transform_schemas
devdeps: -rrequirements-dev.txt

py310: git+https://github.com/pytest-dev/pytest

Expand All @@ -56,6 +53,7 @@ extras =
alldeps: all

commands =
devdeps: pip install -U --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
pip freeze
!cov: pytest {posargs}
cov: pytest --cov-report xml --cov asdf_astropy {posargs}
Expand Down Expand Up @@ -98,7 +96,10 @@ commands=
bandit -c bandit.yaml -r .

[testenv:warnings]
deps =
-rrequirements-dev.txt
commands=
pip install -U --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
pip freeze
pytest --remote-data -W error \
-p no:unraisableexception \
Expand Down

0 comments on commit 289df8b

Please sign in to comment.