Skip to content

Commit

Permalink
Merge pull request #14083 from meeseeksmachine/auto-backport-of-pr-14…
Browse files Browse the repository at this point in the history
…075-on-v5.2.x

Backport PR #14075 on branch v5.2.x (TST: Fix devdeps job)
  • Loading branch information
astrofrog committed Dec 1, 2022
2 parents 9318eab + 365364c commit 7a8d1cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astropy/io/ascii/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def _convert_vals(self, cols):
f" column {col.name}, reverting to String.",
AstropyWarning,
)
col.converters.insert(0, convert_numpy(numpy.str))
col.converters.insert(0, convert_numpy(str))
else:
col.converters.pop(0)
last_err = err
Expand Down
5 changes: 4 additions & 1 deletion astropy/table/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,10 @@ def test_masking(self, use_nullable_int):
else:
assert t2[name].dtype.kind == "i"

assert_array_equal(column.data, t2[name].data.astype(column.dtype))
# This warning pops up when use_nullable_int is False
# for pandas 1.5.2.
with np.errstate(invalid="ignore"):
assert_array_equal(column.data, t2[name].data.astype(column.dtype))
else:
if column.dtype.byteorder in ("=", "|"):
assert column.dtype == t2[name].dtype
Expand Down

0 comments on commit 7a8d1cf

Please sign in to comment.