From 14dceb329273794d58a011f8f2c1a64f95c17952 Mon Sep 17 00:00:00 2001 From: mayeut Date: Tue, 18 Oct 2022 22:23:56 +0200 Subject: [PATCH] fix: linter issues from #2146 Signed-off-by: mayeut --- psutil/tests/test_contracts.py | 3 ++- psutil/tests/test_memleaks.py | 3 ++- psutil/tests/test_system.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index fde857b67..3b806ee37 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -237,7 +237,8 @@ def test_cpu_count(self): self.assertIsInstance(psutil.cpu_count(), int) # TODO: remove this once 1892 is fixed - @unittest.skipIf(MACOS and platform.machine() == 'arm64', "skipped due to #1892") + @unittest.skipIf(MACOS and platform.machine() == 'arm64', + "skipped due to #1892") @unittest.skipIf(not HAS_CPU_FREQ, "not supported") def test_cpu_freq(self): if psutil.cpu_freq() is None: diff --git a/psutil/tests/test_memleaks.py b/psutil/tests/test_memleaks.py index 8d31193b0..dbd1588df 100755 --- a/psutil/tests/test_memleaks.py +++ b/psutil/tests/test_memleaks.py @@ -366,7 +366,8 @@ def test_cpu_stats(self): @fewtimes_if_linux() # TODO: remove this once 1892 is fixed - @unittest.skipIf(MACOS and platform.machine() == 'arm64', "skipped due to #1892") + @unittest.skipIf(MACOS and platform.machine() == 'arm64', + "skipped due to #1892") @unittest.skipIf(not HAS_CPU_FREQ, "not supported") def test_cpu_freq(self): self.execute(psutil.cpu_freq) diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 42b29e8fa..1722b515d 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -513,7 +513,8 @@ def test_cpu_stats(self): self.assertGreater(value, 0) # TODO: remove this once 1892 is fixed - @unittest.skipIf(MACOS and platform.machine() == 'arm64', "skipped due to #1892") + @unittest.skipIf(MACOS and platform.machine() == 'arm64', + "skipped due to #1892") @unittest.skipIf(not HAS_CPU_FREQ, "not supported") def test_cpu_freq(self): def check_ls(ls):