giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.28k stars 1.39k forks source link

test_memory_leaks.TestProcessObjectLeaksZombie.test_ionice_set() fails #539

Closed Arfrever closed 10 years ago

Arfrever commented 10 years ago

test_memory_leaks.TestProcessObjectLeaksZombie.test_ionice_set() fails. This problem seems to occur only with Python 3.4. I use Linux 3.16.3.

$ PYTHONPATH="build/lib.linux-x86_64-3.4" python3.4 test/test_memory_leaks.py
...
======================================================================
FAIL: test_ionice_set (__main__.TestProcessObjectLeaksZombie)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_memory_leaks.py", line 161, in test_ionice_set
    self.execute('ionice', psutil.IOPRIO_CLASS_NONE)
  File "test/test_memory_leaks.py", line 86, in execute
    % (rss2, rss3, difference))
AssertionError: rss2=17915904, rss3=17985536, difference=69632

----------------------------------------------------------------------
Ran 76 tests in 7.517s

FAILED (failures=1, skipped=54)
giampaolo commented 10 years ago

Does it fail from time to time or every time? I'm asking because test_memory_leaks.py script is not fully reliable: it sometimes produces false positives.

Arfrever commented 10 years ago

The failure occurs every time when running test suite of psutil by Portage (Gentoo package manager).

Arfrever commented 10 years ago

This test failure no longer occurs for me.