Package: python-psutil Version: 0.2.1-1 Severity: normal Running unittests suite several errors come out:
running test/test_memory_leaks.py on python2.6 ... ====================================================================== FAIL: test_get_pid_list (__main__.TestModuleFunctionsLeaks) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_memory_leaks.py", line 155, in test_get_pid_list self.execute('get_pid_list') File "test/test_memory_leaks.py", line 152, in execute self.fail("rss1=%s, rss2=%s, difference=%s" %(rss1, rss2, difference)) AssertionError: rss1=9482240, rss2=9494528, difference=12288 ---------------------------------------------------------------------- running test/test_psutil.py on python2.6 ... ====================================================================== ERROR: test_nice (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_psutil.py", line 684, in test_nice p.nice = first_nice File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 199, in nice return self._platform_impl.set_process_nice(value) File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/_pslinux.py", line 195, in wrapper raise AccessDenied(self.pid, self._process_name) AccessDenied: (pid=6003) ====================================================================== ERROR: test_test (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_psutil.py", line 1029, in test_test psutil.test() File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 653, in test line = get_process_info(pid) File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 623, in get_process_info user = proc.username File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 244, in username return pwd.getpwuid(self.uids.real).pw_name KeyError: 'getpwuid(): uid not found: 107' ====================================================================== ERROR: test_process_cmdline (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 114, in test_process_cmdline psutil_cmdline = " ".join(psutil.Process(self.pid).cmdline) File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 80, in __init__ raise NoSuchProcess(pid, None, "no process found with PID %s" % pid) NoSuchProcess: no process found with PID 6042 ====================================================================== ERROR: test_process_exe (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 98, in test_process_exe psutil_pathname = psutil.Process(self.pid).exe File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 163, in exe exe = self._platform_impl.get_process_exe() File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/_pslinux.py", line 237, in get_process_exe raise AccessDenied(self.pid, self._process_name) AccessDenied: (pid=6045) ====================================================================== ERROR: test_process_gid (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 59, in test_process_gid gid_psutil = psutil.Process(self.pid).gids.real File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 80, in __init__ raise NoSuchProcess(pid, None, "no process found with PID %s" % pid) NoSuchProcess: no process found with PID 6048 ====================================================================== ERROR: test_process_parent_pid (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 49, in test_process_parent_pid ppid_psutil = psutil.Process(self.pid).ppid File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 80, in __init__ raise NoSuchProcess(pid, None, "no process found with PID %s" % pid) NoSuchProcess: no process found with PID 6054 ====================================================================== ERROR: test_process_uid (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 54, in test_process_uid uid_psutil = psutil.Process(self.pid).uids.real File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 80, in __init__ raise NoSuchProcess(pid, None, "no process found with PID %s" % pid) NoSuchProcess: no process found with PID 6058 ====================================================================== ERROR: test_process_username (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 64, in test_process_username username_psutil = psutil.Process(self.pid).username File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 80, in __init__ raise NoSuchProcess(pid, None, "no process found with PID %s" % pid) NoSuchProcess: no process found with PID 6061 ====================================================================== FAIL: test_cmdline (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_psutil.py", line 634, in test_cmdline self.assertEqual(psutil.Process(sproc.pid).cmdline, [PYTHON, "-E"]) AssertionError: [] != ['/usr/bin/python2.6', '-E'] ====================================================================== FAIL: test_fetch_all (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_psutil.py", line 1155, in test_fetch_all %(trace, name, p.pid, repr(ret))) AssertionError: Traceback (most recent call last): File "test/test_psutil.py", line 1132, in test_fetch_all attr = getattr(p, name, None) File "/tmp/buildd/python-psutil-0.2.1/build/lib.linux-x86_64-2.6/psutil/__init__.py", line 244, in username return pwd.getpwuid(self.uids.real).pw_name KeyError: 'getpwuid(): uid not found: 107' method=username, pid=1608, retvalue=user(real=107, effective=107, saved=107) ====================================================================== FAIL: test_get_io_counters (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_psutil.py", line 136, in inner return fun(self, *args, **kwargs) File "test/test_psutil.py", line 464, in test_get_io_counters self.assertTrue(io2.write_bytes > io1.write_bytes) AssertionError ====================================================================== FAIL: test_process_name (_posix.PosixSpecificTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/python-psutil-0.2.1/test/_posix.py", line 94, in test_process_name self.assertEqual(name_ps, name_psutil) AssertionError: '[python2.6]' != 'python2.6' ---------------------------------------------------------------------- (the same happens for python2.5). -- System Information: Debian Release: 6.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-psutil depends on: ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib ii python 2.6.6-3+squeeze5 interactive high-level object-orie ii python-support 1.0.11 automated rebuilding support for P python-psutil recommends no packages. python-psutil suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org