python-munkres/test_profil_float_32bit.patch

22 lines
677 B
Diff

---
test/test_munkres.py | 4 ++++
1 file changed, 4 insertions(+)
--- a/test/test_munkres.py
+++ b/test/test_munkres.py
@@ -1,3 +1,5 @@
+import platform
+
from munkres import Munkres, DISALLOWED, UnsolvableMatrix
import munkres
import pytest
@@ -156,6 +158,8 @@ def test_profit():
profit = sum([profit_matrix[row][column] for row, column in indices])
assert profit == 392
+@pytest.mark.skipif(platform.architecture()[0] == "32bit",
+ reason="Doesn't work on 32bit systems, gh#bmc/munkres#40")
def test_profit_float():
profit_matrix = [[94.01, 66.02, 100.03, 18.04, 48.05],
[51.06, 63.07, 97.08, 79.09, 11.1],