From 4cd8f4b22134679e155b8127b7651adcc31f9df6 Mon Sep 17 00:00:00 2001 From: Florian Foinant-Willig Date: Wed, 4 Dec 2024 20:59:28 +0100 Subject: [PATCH] fix testGiantHelix* --- src/Mod/PartDesign/PartDesignTests/TestHelix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/PartDesignTests/TestHelix.py b/src/Mod/PartDesign/PartDesignTests/TestHelix.py index 9ae8b7cd74..2e4e045864 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestHelix.py +++ b/src/Mod/PartDesign/PartDesignTests/TestHelix.py @@ -131,7 +131,7 @@ class TestHelix(unittest.TestCase): def testGiantHelix(self): """ Test giant helix """ - _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') ] + _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') if v.isnumeric() ] if _OCC_VERSION[0]>7 or (_OCC_VERSION[0]==7 and _OCC_VERSION[1]>3): mine=-1 maxe=10 @@ -173,7 +173,7 @@ class TestHelix(unittest.TestCase): def testGiantHelixAdditive(self): """ Test giant helix added to Cylinder """ - _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') ] + _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') if v.isnumeric() ] if _OCC_VERSION[0]>7 or (_OCC_VERSION[0]==7 and _OCC_VERSION[1]>3): mine=-1 maxe=8 @@ -223,7 +223,7 @@ class TestHelix(unittest.TestCase): def testGiantHelixSubtractive(self): """ Test giant helix subtracted from Cylinder """ - _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') ] + _OCC_VERSION=[ int(v) for v in Part.OCC_VERSION.split('.') if v.isnumeric() ] if _OCC_VERSION[0]>7 or (_OCC_VERSION[0]==7 and _OCC_VERSION[1]>3): mine=-1 maxe=8