summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2022-01-16 12:41:42 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2022-01-16 12:41:42 +0100
commite3a5adb84b367fa0d962b9acfae06b06a8465a94 (patch)
treebf09679c9f45144e3f042db3f43dbcd00fcd2ff4 /psutil/tests/test_linux.py
parenteae24097c5cd3a8e5bfe18088058433149e35e8b (diff)
parent7803582ae7a331e3a0be367cae377c92f294148d (diff)
downloadpsutil-e3a5adb84b367fa0d962b9acfae06b06a8465a94.tar.gz
Merge branch 'master' into virtualization
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 b139b034..79d8c505 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1928,7 +1928,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
@@ -2173,7 +2173,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