From 5804c663a93e9435e94918c5c85091430960b9da Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 1 Jun 2021 11:47:19 +0200 Subject: [PATCH] tests: Backport unit test fix from c0d34912230495bb20c581de9d111a87a0336893 --- tests/linmath/test_lvector2.py | 4 ++-- tests/linmath/test_lvector3.py | 4 ++-- tests/linmath/test_lvector4.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/linmath/test_lvector2.py b/tests/linmath/test_lvector2.py index d955fe8d8e..1bb17aee7e 100644 --- a/tests/linmath/test_lvector2.py +++ b/tests/linmath/test_lvector2.py @@ -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 diff --git a/tests/linmath/test_lvector3.py b/tests/linmath/test_lvector3.py index 31f1ff5fe8..44fc17e015 100644 --- a/tests/linmath/test_lvector3.py +++ b/tests/linmath/test_lvector3.py @@ -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 diff --git a/tests/linmath/test_lvector4.py b/tests/linmath/test_lvector4.py index 7cf375589e..3fd283e2d3 100644 --- a/tests/linmath/test_lvector4.py +++ b/tests/linmath/test_lvector4.py @@ -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