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

test_memory_leaks.TestProcessObjectLeaksZombie.test_ionice_set() fails #539

Closed
Arfrever opened this issue Sep 25, 2014 · 3 comments
Closed

Comments

@Arfrever
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@Arfrever
Copy link
Author

This test failure no longer occurs for me.

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

2 participants