diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-13 15:22:49 +0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-13 15:22:49 +0800 |
commit | 412cb7f845462b0a67b1d2ce9b3aa61c555aa262 (patch) | |
tree | 375917159b6aeb669a714a768210b44d26f2fe8e | |
parent | 8e4aab1482471698644d8d1d1541850741530e2e (diff) | |
download | psutil-412cb7f845462b0a67b1d2ce9b3aa61c555aa262.tar.gz |
fix bsd test
-rwxr-xr-x | psutil/tests/test_bsd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_bsd.py b/psutil/tests/test_bsd.py index 5df8ad29..e769b727 100755 --- a/psutil/tests/test_bsd.py +++ b/psutil/tests/test_bsd.py @@ -486,7 +486,7 @@ class NetBSDSpecificTestCase(unittest.TestCase): @staticmethod def parse_meminfo(look_for): - with open('/proc/meminfo', 'rb') as f: + with open('/proc/meminfo', 'rt') as f: for line in f: if line.startswith(look_for): return int(line.split()[1]) * 1024 |