Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: linter issues from #2146 #2155

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion psutil/tests/test_memleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion psutil/tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down