File: numpy-2.3.patch

package info (click to toggle)
hickle 5.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: python: 5,578; sh: 17; makefile: 15
file content (30 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 2 Oct 2025 16:14:05 +0200
Subject: Support NumPy 2.3

---
 hickle/tests/test_06_load_astropy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hickle/tests/test_06_load_astropy.py b/hickle/tests/test_06_load_astropy.py
index 628a4b3..b630bfd 100755
--- a/hickle/tests/test_06_load_astropy.py
+++ b/hickle/tests/test_06_load_astropy.py
@@ -166,7 +166,7 @@ def test_astropy_time_array(h5_data,compression_kwargs):
         assert reloaded.format == t1.format
         assert reloaded.scale == t1.scale
         for index in range(len(t1)):
-             assert reloaded.value[index].tostring() == t1.value[index].tostring()
+             assert reloaded.value[index].tobytes() == t1.value[index].tobytes()
         del h_dataset.attrs['np_dtype']
 
         reloaded = load_astropy.load_astropy_time_dataset(h_dataset,b'astropy_time',t1.__class__)
@@ -174,7 +174,7 @@ def test_astropy_time_array(h5_data,compression_kwargs):
         assert reloaded.format == t1.format
         assert reloaded.scale == t1.scale
         for index in range(len(t1)):
-            assert reloaded.value[index].tostring() == t1.value[index].tostring()
+            assert reloaded.value[index].tobytes() == t1.value[index].tobytes()
         loop_counter += 1