From cbb5ca34d719044f7ffb35ee181dbdfdbc78cb2b Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Tue, 28 Mar 2023 19:29:24 +0200 Subject: fix linux tests --- psutil/tests/test_linux.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py index 3e1afc4f..b8be6ca3 100755 --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -352,7 +352,6 @@ class TestSystemVirtualMemory(PsutilTestCase): assert m.called self.assertEqual(len(ws), 1) w = ws[0] - assert w.filename.endswith('psutil/_pslinux.py') self.assertIn( "memory stats couldn't be determined", str(w.message)) self.assertIn("cached", str(w.message)) @@ -586,7 +585,6 @@ class TestSystemSwapMemory(PsutilTestCase): assert m.called self.assertEqual(len(ws), 1) w = ws[0] - assert w.filename.endswith('psutil/_pslinux.py') self.assertIn( "'sin' and 'sout' swap memory stats couldn't " "be determined", str(w.message)) @@ -604,7 +602,6 @@ class TestSystemSwapMemory(PsutilTestCase): assert m.called self.assertEqual(len(ws), 1) w = ws[0] - assert w.filename.endswith('psutil/_pslinux.py') self.assertIn( "'sin' and 'sout' swap memory stats couldn't " "be determined and were set to 0", -- cgit v1.2.1