summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-10-17 02:00:10 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-10-17 02:00:10 +0200
commitbc21e903aa3fec4d2198d40881c9d18a2751e47e (patch)
tree3d3254e90c03d5ce1ad26af6f9f6623b4bb9acfd
parent42faafe7c45e32f09b34148571cea568828e789c (diff)
downloadpsutil-skip-osx-py27.tar.gz
try to skip macos + pypyskip-osx-py27
-rw-r--r--.github/workflows/build_wheel.yml2
-rwxr-xr-xpsutil/tests/test_linux.py11
2 files changed, 1 insertions, 12 deletions
diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml
index 44cd78b3..4f9eeef9 100644
--- a/.github/workflows/build_wheel.yml
+++ b/.github/workflows/build_wheel.yml
@@ -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
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index 163be0f9..0d247aa5 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1556,17 +1556,6 @@ class TestSensorsBattery(PsutilTestCase):
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(