Skip to content

Commit

Permalink
fix: linter issues from #2146 (#2155)
Browse files Browse the repository at this point in the history
Signed-off-by: mayeut <mayeut@users.noreply.github.com>
  • Loading branch information
mayeut authored Oct 18, 2022
1 parent 1da9f79 commit 669b672
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 669b672

Please sign in to comment.