We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f746b4 commit 7153985Copy full SHA for 7153985
test/framework/systemtools.py
@@ -454,7 +454,7 @@ def test_cpu_speed_native(self):
454
"""Test getting CPU speed."""
455
cpu_speed = get_cpu_speed()
456
self.assertTrue(isinstance(cpu_speed, float) or cpu_speed is None)
457
- self.assertTrue(cpu_speed > 0.0 or cpu_speed is None)
+ self.assertTrue(cpu_speed is None or cpu_speed > 0.0)
458
459
def test_cpu_speed_linux(self):
460
"""Test getting CPU speed (mocked for Linux)."""
0 commit comments