Skip to content

Commit

Permalink
try to skip macos + pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 17, 2020
1 parent 42faafe commit bc21e90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheel.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
CIBW_TEST_COMMAND: python -u -Wa {project}/psutil/tests/runner.py
CIBW_TEST_COMMAND_MACOS: LC_ALL='en_US.utf8' python -Wa {project}/psutil/tests/runner.py
CIBW_TEST_EXTRAS: test
CIBW_SKIP: pp27-macosx_x86_64
CIBW_SKIP: pp*-macosx_x86_64
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
Expand Down
11 changes: 0 additions & 11 deletions psutil/tests/test_linux.py
Expand Up @@ -1556,17 +1556,6 @@ def open_mock(name, *args, **kwargs):
self.assertIsNone(psutil.sensors_battery().power_plugged)
assert m.called

def test_emulate_no_base_files(self):
# Emulate a case where base metrics files are not present,
# in which case we're supposed to get None.
with mock_open_exception(
"/sys/class/power_supply/BAT0/energy_now",
IOError(errno.ENOENT, "")):
with mock_open_exception(
"/sys/class/power_supply/BAT0/charge_now",
IOError(errno.ENOENT, "")):
self.assertIsNone(psutil.sensors_battery())

def test_emulate_energy_full_0(self):
# Emulate a case where energy_full files returns 0.
with mock_open_content(
Expand Down

0 comments on commit bc21e90

Please sign in to comment.