File: 0026-Fix-pytest-incompatibility-in-test_Kernel.py.patch

package info (click to toggle)
siconos 4.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,600 kB
  • sloc: cpp: 160,976; ansic: 129,998; fortran: 33,051; python: 20,958; xml: 1,244; sh: 385; makefile: 318
file content (23 lines) | stat: -rw-r--r-- 778 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
From: Stephen Sinclair <radarsat1@gmail.com>
Date: Fri, 14 Nov 2025 21:30:42 +0000
Subject: Fix pytest incompatibility in test_Kernel.py

---
 kernel/swig/tests/test_Kernel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/swig/tests/test_Kernel.py b/kernel/swig/tests/test_Kernel.py
index c9a41c2..315940d 100644
--- a/kernel/swig/tests/test_Kernel.py
+++ b/kernel/swig/tests/test_Kernel.py
@@ -21,8 +21,8 @@ def test_autocast():
     if not isinstance(nsds.dynamicalSystem(dsB.number()), sk.FirstOrderLinearDS):
         failed = 1
 
-    return failed
-        
+    assert not failed
+
     #assert(type(nsds.dynamicalSystem(dsA.number())) == sk.LagrangianDS)
     #assert(type(nsds.dynamicalSystem(dsB.number())) == sk.FirstOrderLinearDS)