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

2020-11-06 Thread Rebecca N. Palmer
Control: severity -1 minor Control: retitle -1 imperfect/non-upstreamable architecture detection The sys.maxsize check should catch amd64 vs i386; the directory check is mostly to catch other-32-bit vs i386. All this patch does is allow more rounding error in some tests (because i386

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

2020-11-06 Thread Matthias Klose
On 11/6/20 9:35 AM, Rebecca N. Palmer wrote: > Control: severity -1 minor > Control: retitle -1 imperfect/non-upstreamable architecture detection > > The sys.maxsize check should catch amd64 vs i386; the directory check is > mostly > to catch other-32-bit vs i386.  All this patch does is allow

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

2020-11-05 Thread Matthias Klose
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()