Bug#973854: debian/patches/i386_loosen_test_tolerances.patch not Multi-Arch safe

Matthias Klose doko at debian.org
Fri Nov 6 05:27:46 GMT 2020


Package: src:statsmodels
Version: 0.12.1-1

+import sys
+import glob
+i386_looser_tolerances=len(glob.glob('/usr/lib/i386-*/'))>0 and
np.log2(sys.maxsize)<=32

this is not safe. the directory can exist on any installation. better use
sysconfig.get_platform()



More information about the debian-science-maintainers mailing list