{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/538","repository_url":"https://api.github.com/repos/giampaolo/psutil","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/538/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/538/events","html_url":"https://github.com/giampaolo/psutil/issues/538","id":43829507,"number":538,"title":"Test failures / errors","user":{"login":"Arfrever","id":656294,"avatar_url":"https://avatars.githubusercontent.com/u/656294?v=3","gravatar_id":"","url":"https://api.github.com/users/Arfrever","html_url":"https://github.com/Arfrever","followers_url":"https://api.github.com/users/Arfrever/followers","following_url":"https://api.github.com/users/Arfrever/following{/other_user}","gists_url":"https://api.github.com/users/Arfrever/gists{/gist_id}","starred_url":"https://api.github.com/users/Arfrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arfrever/subscriptions","organizations_url":"https://api.github.com/users/Arfrever/orgs","repos_url":"https://api.github.com/users/Arfrever/repos","events_url":"https://api.github.com/users/Arfrever/events{/privacy}","received_events_url":"https://api.github.com/users/Arfrever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/giampaolo/psutil/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/giampaolo/psutil/labels/Component-Tests","name":"Component-Tests","color":"FFFFFF"},{"url":"https://api.github.com/repos/giampaolo/psutil/labels/OpSys-Linux","name":"OpSys-Linux","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-09-25T00:12:04Z","updated_at":"2016-02-15T18:39:45Z","closed_at":null,"body":"psutil 2.1.2 and trunk have test failures / errors.\r\nI use Linux 3.16.3.\r\n\r\nResult with Python 2.7 (similar with 2.6):\r\n```\r\n$ PYTHONPATH=\"build/lib.linux-x86_64-2.7\" python2.7 test/test_psutil.py\r\n...\r\n======================================================================\r\nERROR: test_swapmem_free (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 120, in test_swapmem_free\r\n    free = int(lines[2].split()[3]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nERROR: test_swapmem_total (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/_linux.py\", line 107, in test_swapmem_total\r\n    total = int(lines[2].split()[1]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nERROR: test_swapmem_used (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 113, in test_swapmem_used\r\n    used = int(lines[2].split()[2]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nFAIL: test_vmem_buffers (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 96, in test_vmem_buffers\r\n    delta=TOLERANCE)\r\nAssertionError: 776048640 != 99074048L within 512000 delta\r\n\r\n======================================================================\r\nFAIL: test_vmem_cached (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 103, in test_vmem_cached\r\n    delta=TOLERANCE)\r\nAssertionError: 896303104 != 472481792 within 512000 delta\r\n\r\n======================================================================\r\nFAIL: test_vmem_used (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 82, in test_vmem_used\r\n    delta=TOLERANCE)\r\nAssertionError: 771649536 != 1547698176L within 512000 delta\r\n\r\n----------------------------------------------------------------------\r\nRan 132 tests in 9.293s\r\n\r\nFAILED (failures=3, errors=3, skipped=1)\r\n```\r\n\r\nResult with Python 3.4 (the same with 3.2, 3.3):\r\n```\r\n$ PYTHONPATH=\"build/lib.linux-x86_64-3.4\" python3.4 test/test_psutil.py\r\n...\r\n======================================================================\r\nERROR: test_swapmem_free (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 120, in test_swapmem_free\r\n    free = int(lines[2].split()[3]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nERROR: test_swapmem_total (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/_linux.py\", line 107, in test_swapmem_total\r\n    total = int(lines[2].split()[1]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nERROR: test_swapmem_used (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 401, in wrapper\r\n    return fun(*args, **kwargs)\r\n  File \"/tmp/psutil/test/_linux.py\", line 113, in test_swapmem_used\r\n    used = int(lines[2].split()[2]) * 1024\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nERROR: test_vmem_buffers (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 404, in wrapper\r\n    raise\r\nRuntimeError: No active exception to reraise\r\n\r\n======================================================================\r\nERROR: test_vmem_cached (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 404, in wrapper\r\n    raise\r\nRuntimeError: No active exception to reraise\r\n\r\n======================================================================\r\nERROR: test_vmem_used (_linux.LinuxSpecificTestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/psutil/test/test_psutil.py\", line 404, in wrapper\r\n    raise\r\nRuntimeError: No active exception to reraise\r\n\r\n----------------------------------------------------------------------\r\nRan 132 tests in 10.721s\r\n\r\nFAILED (errors=6, skipped=1)\r\n```"},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/184341796","html_url":"https://github.com/giampaolo/psutil/issues/538#issuecomment-184341796","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/538","id":184341796,"user":{"login":"jelly","id":67428,"avatar_url":"https://avatars.githubusercontent.com/u/67428?v=3","gravatar_id":"","url":"https://api.github.com/users/jelly","html_url":"https://github.com/jelly","followers_url":"https://api.github.com/users/jelly/followers","following_url":"https://api.github.com/users/jelly/following{/other_user}","gists_url":"https://api.github.com/users/jelly/gists{/gist_id}","starred_url":"https://api.github.com/users/jelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelly/subscriptions","organizations_url":"https://api.github.com/users/jelly/orgs","repos_url":"https://api.github.com/users/jelly/repos","events_url":"https://api.github.com/users/jelly/events{/privacy}","received_events_url":"https://api.github.com/users/jelly/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T18:39:45Z","updated_at":"2016-02-15T18:39:45Z","body":"I still have these left\r\n\r\n```\r\n======================================================================\r\nFAIL: test_memory_maps (test_linux.TestProcess)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/jelle/projects/psutil/psutil/tests/test_linux.py\", line 711, in test_memory_maps\r\n    self.assertEqual(int(rss) * 1024, this.rss)\r\nAssertionError: 0 != 4096\r\n\r\n======================================================================\r\nFAIL: test_cached (test_linux.TestSystemVirtualMemory)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/jelle/projects/psutil/psutil/tests/__init__.py\", line 492, in wrapper\r\n    raise exc\r\nAssertionError: 2087776256 != 1787822080 within 512000 delta\r\n\r\n======================================================================\r\nFAIL: test_used (test_linux.TestSystemVirtualMemory)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/jelle/projects/psutil/psutil/tests/__init__.py\", line 492, in wrapper\r\n    raise exc\r\nAssertionError: 2048389120 != 4409942016 within 512000 delta\r\n\r\n----------------------------------------------------------------------\r\nRan 336 tests in 5.292s\r\n```"}}