diff options
Diffstat (limited to 'tests/osinfo.py')
-rw-r--r-- | tests/osinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/osinfo.py b/tests/osinfo.py index f9562deb..ec34c709 100644 --- a/tests/osinfo.py +++ b/tests/osinfo.py @@ -50,7 +50,7 @@ elif env.LINUX: # Get pseudo file /proc/<pid>/status with open('/proc/%d/status' % os.getpid()) as t: v = t.read() - except IOError: # pragma: cant happen + except OSError: # pragma: cant happen return 0 # non-Linux? # Get VmKey line e.g. 'VmRSS: 9999 kB\n ...' i = v.index(key) |