From 96e2e7d3579b62144a4a56669cba67b8cb509ab4 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 29 Mar 2024 20:57:36 +0100 Subject: [PATCH] tests: Remove testing for AssertionError This crashes with `assert-abort` and doesn't work with release builds --- tests/collide/test_into_heightfield.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/collide/test_into_heightfield.py b/tests/collide/test_into_heightfield.py index fe2ab07b57..6cf5745458 100644 --- a/tests/collide/test_into_heightfield.py +++ b/tests/collide/test_into_heightfield.py @@ -26,9 +26,9 @@ def test_sphere_into_heightfield(): entry, np_from, np_into = make_collision(sphere, heightfield) assert entry.get_surface_point(np_from) == (1, 510, 10.1) - with pytest.raises(AssertionError) as err: - assert heightfield.set_num_subdivisions(-1) == err - assert heightfield.set_num_subdivisions(11) == err + #with pytest.raises(AssertionError) as err: + # assert heightfield.set_num_subdivisions(-1) == err + # assert heightfield.set_num_subdivisions(11) == err # Use a greater number of subdivisions, should still work num_subdivisions = 10