tests: Remove testing for AssertionError

This crashes with `assert-abort` and doesn't work with release builds
This commit is contained in:
rdb 2024-03-29 20:57:36 +01:00
parent 5cad92cd56
commit 96e2e7d357

View File

@ -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