summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2022-10-18 22:30:29 +0200
committerGitHub <noreply@github.com>2022-10-18 22:30:29 +0200
commit669b672dc7acc696376e5ca8104cf01086fe6f8c (patch)
tree06cfb58e5838575c53b1a28af08d8e1ec1b5a005
parent1da9f7928e79ecc127768e7a5bc4eb7f785f4513 (diff)
downloadpsutil-669b672dc7acc696376e5ca8104cf01086fe6f8c.tar.gz
fix: linter issues from #2146 (#2155)
Signed-off-by: mayeut <mayeut@users.noreply.github.com>
-rwxr-xr-xpsutil/tests/test_contracts.py3
-rwxr-xr-xpsutil/tests/test_memleaks.py3
-rwxr-xr-xpsutil/tests/test_system.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index fde857b6..3b806ee3 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -237,7 +237,8 @@ class TestSystemAPITypes(PsutilTestCase):
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 8d31193b..dbd1588d 100755
--- a/psutil/tests/test_memleaks.py
+++ b/psutil/tests/test_memleaks.py
@@ -366,7 +366,8 @@ class TestModuleFunctionsLeaks(TestMemoryLeak):
@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 42b29e8f..1722b515 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -513,7 +513,8 @@ class TestCpuAPIs(PsutilTestCase):
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):