Browse Source

tests: Test fewer numbers for vector floor divide test

Hopefully fix Windows test suite
rdb 4 years ago
parent
commit
c0d3491223

+ 2 - 2
tests/linmath/test_lvector2.py

@@ -125,8 +125,8 @@ def test_vec4_floordiv(type):
     with pytest.raises(ZeroDivisionError):
     with pytest.raises(ZeroDivisionError):
         type(1, 2) // 0
         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
             assert (type(i) // -j).x == i // -j
             assert (type(i) // -j).x == i // -j
 
 

+ 2 - 2
tests/linmath/test_lvector3.py

@@ -110,8 +110,8 @@ def test_vec3_floordiv(type):
     with pytest.raises(ZeroDivisionError):
     with pytest.raises(ZeroDivisionError):
         type(1, 2, 3) // 0
         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
             assert (type(i) // -j).x == i // -j
             assert (type(i) // -j).x == i // -j
 
 

+ 2 - 2
tests/linmath/test_lvector4.py

@@ -126,8 +126,8 @@ def test_vec4_floordiv(type):
     with pytest.raises(ZeroDivisionError):
     with pytest.raises(ZeroDivisionError):
         type(1, 2, 3, 4) // 0
         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
             assert (type(i) // -j).x == i // -j
             assert (type(i) // -j).x == i // -j