Skip to content

Commit eba8c6f

Browse files
committed
MAINT: addressing np 2.0 repr changes
1 parent 2c71ad5 commit eba8c6f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

conftest.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
iers_conf.auto_download = False
4141

4242

43-
# Keep this until we require numpy to be >=2.0
44-
if minversion(np, "2.0.0.dev0+git20230726"):
45-
np.set_printoptions(legacy="1.25")
46-
47-
4843
def pytest_configure(config):
4944
"""Configure Pytest with Astropy.
5045

pyvo/dal/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def __len__(self):
695695
return len(self._mapping)
696696

697697
def __repr__(self):
698-
return repr(tuple(self.values()))
698+
return repr(tuple(f'{val}' for val in self.values()))
699699

700700
def get(self, key, default=None, decode=False):
701701
"""

pyvo/dal/tests/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def test_repr(self):
461461
record = DALResults.from_result_url(
462462
'http://example.com/query/basic')[0]
463463
truth = 'Illuminatus'
464-
assert repr(record) == repr((23, truth))
464+
assert repr(record) == repr(('23', truth))
465465

466466
def test_get(self):
467467
record = DALResults.from_result_url(

0 commit comments

Comments
 (0)