You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x0000025800448760>
def test_overrides(self):
previousDir = os.getcwd()
cfg = os.path.join(self._dir1, 'site.cfg')
shutil.copy(self._sitecfg, cfg)
try:
os.chdir(self._dir1)
# Check that the '[ALL]' section does not override
# missing values from other sections
info = mkl_info()
lib_dirs = info.cp['ALL']['library_dirs'].split(os.pathsep)
assert info.get_lib_dirs() != lib_dirs
# But if we copy the values to a '[mkl]' section the value
# is correct
with open(cfg, 'r') as fid:
mkl = fid.read().replace('ALL', 'mkl')
with open(cfg, 'w') as fid:
fid.write(mkl)
info = mkl_info()
assert info.get_lib_dirs() == lib_dirs
# Also, the values will be taken from a section named '[DEFAULT]'
with open(cfg, 'r') as fid:
dflt = fid.read().replace('mkl', 'DEFAULT')
with open(cfg, 'w') as fid:
fid.write(dflt)
info = mkl_info()
assert info.get_lib_dirs() == lib_dirs
E AssertionError: assert [] == ['C:\Users\...\tmpyy_rrfob']
E Right contains 2 more items, first extra item: 'C:\Users\helene\AppData\Local\Temp\tmplzhqlf_t'
E Full diff:
E [
E + ,
E - 'C:\Users\helene\AppData\Local\Temp\tmplzhqlf_t',
E - 'C:\Users\helene\AppData\Local\Temp\tmpyy_rrfob',
E ]
Activity
stonebig commentedon Jul 26, 2020
stonebig commentedon Jul 26, 2020
given comment from charris in numpy issue 16769, I think it's good to go.
Summary:
stonebig commentedon Jul 28, 2020
switching to numpy-1.19.1