mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
tests: Test fewer numbers for vector floor divide test
Hopefully fix Windows test suite
This commit is contained in:
parent
18873ffbf1
commit
c0d3491223
@ -125,8 +125,8 @@ def test_vec4_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
@ -110,8 +110,8 @@ def test_vec3_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2, 3) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
@ -126,8 +126,8 @@ def test_vec4_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2, 3, 4) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user