Skip to content

Commit

Permalink
Merge pull request #8938 from dhomeier/python-38-ssize_t+int-fix
Browse files Browse the repository at this point in the history
Deprecation warnings and test failures under Python 3.8
  • Loading branch information
bsipocz committed Jul 7, 2019
1 parent e1a504e commit cd9877b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions astropy/io/votable/src/tablewriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
******************************************************************************/

#define PY_SSIZE_T_CLEAN
#include <Python.h>

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion astropy/wcs/tests/test_wcsprm.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def test_velosys():
def test_velref():
w = _wcs.Wcsprm()
assert w.velref == 0.0
w.velref = 42.0
w.velref = 42
assert w.velref == 42.0
del w.velref
assert w.velref == 0.0
Expand Down

0 comments on commit cd9877b

Please sign in to comment.