summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index f54995870..88034322d 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -210,7 +210,7 @@ elif sys.platform[:5] == 'linux':
l = f.readline().split(' ')
f.close()
return int(l[22])
- except:
+ except Exception:
return
else:
def memusage():
@@ -239,7 +239,7 @@ if sys.platform[:5] == 'linux':
l = f.readline().split(' ')
f.close()
return int(l[13])
- except:
+ except Exception:
return int(100*(time.time()-_load_time[0]))
else:
# os.getpid is not in all platforms available.