File: numpy-1.24.patch

package info (click to toggle)
python-quantities 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 852 kB
  • sloc: python: 9,353; makefile: 72; sh: 3
file content (16 lines) | stat: -rw-r--r-- 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Adapt to numpy 1.24
Bug-Debian: https://bugs.debian.org/1028773
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 18 Jan 2023 16:16:25 +0100

--- a/quantities/tests/test_arithmetic.py
+++ b/quantities/tests/test_arithmetic.py
@@ -52,7 +52,7 @@ class iter_dtypes:
 
     def __init__(self):
         self._i = 1
-        self._typeDict = np.typeDict.copy()
+        self._typeDict = np.sctypeDict.copy()
         self._typeDict[17] = int
         self._typeDict[18] = long
         self._typeDict[19] = float