summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2022-01-16 12:41:25 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2022-01-16 12:41:25 +0100
commit7803582ae7a331e3a0be367cae377c92f294148d (patch)
tree929367bc8ecfecbb85c600438087161601ec14d3 /psutil/tests/test_linux.py
parentd135e2c3a99bfd1bd01d1158ec31dbc8dc1c910f (diff)
downloadpsutil-7803582ae7a331e3a0be367cae377c92f294148d.tar.gz
fix py 2.7 failures
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-xpsutil/tests/test_linux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index 2f8c40b0..e36fb874 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1911,7 +1911,7 @@ class TestProcess(PsutilTestCase):
patch_point = 'psutil._pslinux.os.readlink'
with mock.patch(patch_point,
side_effect=OSError(errno.ENAMETOOLONG, "")) as m:
- with mock.patch("psutil._common.debug"):
+ with mock.patch("psutil._pslinux.debug"):
files = p.open_files()
assert not files
assert m.called
@@ -2156,7 +2156,7 @@ class TestProcess(PsutilTestCase):
with mock.patch('psutil._pslinux.os.readlink',
side_effect=OSError(errno.ENAMETOOLONG, "")) as m:
p = psutil.Process()
- with mock.patch("psutil._common.debug"):
+ with mock.patch("psutil._pslinux.debug"):
assert not p.connections()
assert m.called