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

[Fedora Linux/CentOS Stream 10] psutil.tests.test_system.TestSensorsAPIs.test_sensors_temperatures assertion fails more often than not #2434

Open
befeleme opened this issue Aug 20, 2024 · 0 comments

Comments

@befeleme
Copy link

Summary

  • OS: Fedora Linux 42, CentOS Stream 10
  • Architecture: multiple
  • Psutil version: 5.9.8
  • Python version: 3.12
  • Type: tests

Description

We run tests during the package build, with invocation xxx

psutil.tests.test_system.TestSensorsAPIs.test_sensors_temperatures is flaky - fails much more often than not.

C10S output:

DEBUG: FAIL: psutil.tests.test_system.TestSensorsAPIs.test_sensors_temperatures
DEBUG: ----------------------------------------------------------------------
DEBUG: Traceback (most recent call last):
DEBUG:   File "/builddir/build/BUILD/psutil-release-5.9.8/psutil/tests/test_system.py", line 914, in test_sensors_temperatures
DEBUG:     self.assertGreaterEqual(entry.current, 0)
DEBUG: AssertionError: -0.15 not greater than or equal to 0
DEBUG: ----------------------------------------------------------------------

Fedora Linux ouput:

======================================================================
FAIL: psutil.tests.test_system.TestSensorsAPIs.test_sensors_temperatures
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.13/site-packages/psutil/tests/test_system.py", line 914, in test_sensors_temperatures
    self.assertGreaterEqual(entry.current, 0)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: -273.15 not greater than or equal to 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant