mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
tests: Remove testing for AssertionError
This crashes with `assert-abort` and doesn't work with release builds
This commit is contained in:
parent
5cad92cd56
commit
96e2e7d357
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user