Skip to content

Commit

Permalink
Fix decoding error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 28, 2018
1 parent cc88877 commit da17f5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psutil/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from psutil import POSIX
from psutil import SUNOS
from psutil import WINDOWS
from psutil._common import open_text
from psutil._compat import long
from psutil._compat import PY3
from psutil.tests import APPVEYOR
Expand Down Expand Up @@ -626,7 +627,7 @@ def test_memory_maps(self):
raise
else:
# https://github.com/giampaolo/psutil/issues/759
with open('/proc/self/smaps') as f:
with open_text('/proc/self/smaps') as f:
data = f.read()
if "%s (deleted)" % nt.path not in data:
raise
Expand Down

0 comments on commit da17f5e

Please sign in to comment.