summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/tests/test_system_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py
index ec15126f7..b722281ad 100644
--- a/numpy/distutils/tests/test_system_info.py
+++ b/numpy/distutils/tests/test_system_info.py
@@ -269,7 +269,7 @@ class TestSystemInfoReading:
# 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')
+ mkl = fid.read().replace('[ALL]', '[mkl]', 1)
with open(cfg, 'w') as fid:
fid.write(mkl)
info = mkl_info()
@@ -277,7 +277,7 @@ class TestSystemInfoReading:
# Also, the values will be taken from a section named '[DEFAULT]'
with open(cfg, 'r') as fid:
- dflt = fid.read().replace('mkl', 'DEFAULT')
+ dflt = fid.read().replace('[mkl]', '[DEFAULT]', 1)
with open(cfg, 'w') as fid:
fid.write(dflt)
info = mkl_info()