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()
|