File: python3.12.patch

package info (click to toggle)
pynn 0.10.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,156 kB
  • sloc: python: 25,612; cpp: 320; makefile: 117; sh: 80
file content (18 lines) | stat: -rw-r--r-- 661 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: port a test assertion to python3.12
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058252
Forwarded: no
Last-Update: 2023-12-15
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pynn.orig/test/unittests/test_space.py
+++ pynn/test/unittests/test_space.py
@@ -52,7 +52,7 @@
                        [2.0, 3.0, 4.0]])
 
     def assertArraysEqual(self, A, B):
-        self.assert_((A == B).all(), "%s != %s" % (A, B))
+        self.assertTrue((A == B).all(), "%s != %s" % (A, B))
 
     def test_infinite_space_with_3D_distances(self):
         s = space.Space()