tests: Backport unit test fix from c0d34912230495bb20c581de9d111a87a0336893

This commit is contained in:
rdb 2021-06-01 11:47:19 +02:00
parent 0415a08416
commit 5804c663a9
3 changed files with 6 additions and 6 deletions

View File

@ -129,8 +129,8 @@ def test_vec2_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

View File

@ -114,8 +114,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

View File

@ -130,8 +130,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