From b86a5dca4674b28bddb1fe476a0196e97d9198b3 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola <g.rodola@gmail.com> Date: Fri, 21 Oct 2022 11:34:55 -0700 Subject: [PATCH] add windows test for free physical mem #2074 Signed-off-by: Daniel Widdis <widdis@gmail.com> --- psutil/tests/test_windows.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psutil/tests/test_windows.py b/psutil/tests/test_windows.py index f1fde37a5..8e3247280 100755 --- a/psutil/tests/test_windows.py +++ b/psutil/tests/test_windows.py @@ -23,6 +23,7 @@ import psutil from psutil import WINDOWS from psutil._compat import FileNotFoundError +from psutil._compat import which from psutil._compat import super from psutil._compat import which from psutil.tests import APPVEYOR @@ -161,6 +162,7 @@ def test_free_phymem(self): self.assertAlmostEqual( int(w.AvailableBytes), psutil.virtual_memory().free, delta=TOLERANCE_SYS_MEM) + def test_total_swapmem(self): if (psutil.swap_memory().total > 0): w = wmi.WMI().Win32_PerfRawData_PerfOS_Memory()[0]