Browse Source

tests: Backport unit test fix from c0d34912230495bb20c581de9d111a87a0336893

rdb 4 years ago
parent
commit
5804c663a9

+ 2 - 2
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
 

+ 2 - 2
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
 

+ 2 - 2
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