summaryrefslogtreecommitdiff
path: root/psutil
Commit message (Collapse)AuthorAgeFilesLines
* refactoring / rename varsGiampaolo Rodola2020-04-291-12/+10
|
* Test sub-processes cleanup and ProcessTestCase class (#1739)Giampaolo Rodola2020-04-2812-215/+260
|
* show status() in __repr__Giampaolo Rodola2020-04-282-14/+18
|
* create_zombie_proc() make it return parent so that we can kill zombieGiampaolo Rodola2020-04-284-19/+27
|
* psutil.Popen: inherit from subprocess + support wait(timeout=...) parameter ↵Giampaolo Rodola2020-04-285-47/+81
| | | | (#1736)
* add new termina() test utilGiampaolo Rodola2020-04-271-56/+73
|
* Merge branch 'master' into devreap-childrenGiampaolo Rodola2020-04-2618-113/+291
|\
| * Parallel tests (UNIX) (#1709)Giampaolo Rodola2020-04-2618-113/+291
| |
* | rename varGiampaolo Rodola2020-04-265-45/+45
|/
* trick to execute atexit functions in case of SIGTERMGiampaolo Rodola2020-04-251-21/+34
|
* Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-2410-355/+300
|
* Backport python 3 super() (#1733)Giampaolo Rodola2020-04-247-34/+112
|
* MemoryLeakTest class enhancements (#1731)Giampaolo Rodola2020-04-237-440/+567
|
* Remove useless assignment (#1728)kaiix2020-04-161-1/+0
|
* Fix handling /proc/cpuinfo without tabs (#1726)Michał Górny2020-04-141-1/+1
| | | | | | | /proc/cpuinfo uses spaces rather than tabs on ia64. Since there seems not to be any reason to require specific kind of whitespace before ':' on 'cpu mhz' line, just split on ':'. See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/ia64/kernel/setup.c#n700
* sensors_fans is not available on MacOS (#1710)crusaderky2020-03-041-1/+1
|
* Fix detecting empty result in TestSystemAPIs.test_users() (#1699)Michał Górny2020-02-211-2/+2
|
* Git hook for renamed/added/deleted files + flake8 print() + tidelift (#1704)Giampaolo Rodola2020-02-216-22/+9
|
* fix KeyErrorrelease-5.7.0Giampaolo Rodola2020-02-181-1/+1
|
* Add C linter script (#1698)Giampaolo Rodola2020-02-1811-14/+13
|
* revert process_iter() exactly how it was pre #1667Giampaolo Rodola2020-02-181-3/+2
|
* revert #1667 process_iter() new_only paramGiampaolo Rodola2020-02-182-21/+1
| | | | | | | | | | On a second thought I realized that process_iter() uses a global variable, so it's not thread safe. That means that if the are 2 threads using it, the first thread one calling the function (+ consume the iterator), will "steal" the processes of the second thread. psutil.cpu_percent() has the same problem. That means we have a problem can't solve with the current API and requires a lot of thinking on how to solve it as it's not obvious.
* #1053 fix syntax incompatible with py2.6Giampaolo Rodola2020-02-161-2/+1
|
* remove deprecation test: it fails intermittently because warnings uses a ↵Giampaolo Rodola2020-02-161-17/+0
| | | | global state
* get rid of pip_install() code for py2; move everything in runner.pyGiampaolo Rodola2020-02-153-84/+17
|
* point all shebangs to python 3Giampaolo Rodola2020-02-1516-16/+16
|
* refactor print colors utilsGiampaolo Rodola2020-02-153-93/+85
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-02-152-11/+7
|\
| * Fix a compile error in _psutil_linux.c if PSUTIL_HAVE_IOPRIO is false (#1695)Anselm Kruis2020-02-151-1/+1
| | | | | | The macro PSUTIL_HAVE_IOPRIO is always defined.
| * #1693: also increase precision of users()'s login timeGiampaolo Rodola2020-02-131-10/+6
| |
* | update docGiampaolo Rodola2020-02-151-2/+3
|/
* divide test_system.py unit tests in multiple classesGiampaolo Rodola2020-02-141-183/+200
|
* fix testsGiampaolo Rodola2020-02-132-2/+6
|
* #1659: provide error message in case of bugged PYPY2 versionGiampaolo Rodola2020-02-142-4/+12
|
* small refactoringGiampaolo Rodola2020-02-141-6/+7
|
* #1681, revert 00a3398Giampaolo Rodola2020-02-132-44/+0
|
* refactoring: get rid of duplicated code; use one function to return (user, ↵Giampaolo Rodola2020-02-132-58/+20
| | | | | | | | | | | | | | sys, create time) rename method remove unnecessary wrap_exceptions deco bind cpu_times() and create_time() with oneshot() rename var remove cache for proc_times(): unnecessary because create_time() is already cached
* [Windows] increase precision of boot_time() and proc create_time() (#1693)Giampaolo Rodola2020-02-134-64/+58
|
* #1672: warning pre-processor directive don't work on win + py2; also if ↵Giampaolo Rodola2020-02-131-7/+4
| | | | struct.calcsize('l') < 8 assume int
* small refactoring to accomodate #1691Giampaolo Rodola2020-02-131-5/+6
|
* #1672: determine pid_t size at runtime in setup.pyGiampaolo Rodola2020-02-121-1/+4
|
* refactoringGiampaolo Rodola2020-02-122-44/+52
|
* fix pypy on LinuxGiampaolo Rodola2020-02-123-46/+42
|
* refactor docGiampaolo Rodola2020-02-121-5/+26
|
* Add support for PyPy on Windows (#1686)Giampaolo Rodola2020-02-1113-40/+134
|
* fix #1627: [Linux] Process.memory_maps() can raise KeyErrorGiampaolo Rodola2020-02-111-1/+1
|
* small refactGiampaolo Rodola2020-02-111-3/+2
|
* fix #1681 / linux / disk_partitions: show swapGiampaolo Rodola2020-02-112-0/+43
|
* skip memleak tests on PyPy: they are unreliable probably because of the JITGiampaolo Rodola2020-02-102-5/+7
|
* Fix test errors for PYPY.Giampaolo Rodola2020-02-093-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It looks like PYPY implementation has some issues with strings (or maybe it's a subprocess bug?). Anyway, this is the full output: PYTHONWARNINGS=all PSUTIL_TESTING=1 PSUTIL_DEBUG=1 pypy3 -c "import psutil.tests.runner as r; r.run(last_failed=True)" psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_cmdline ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_exe ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_name ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_long_cmdline ... /home/giampaolo/svn/psutil/@psutil-test-30050: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_long_name ... /home/giampaolo/svn/psutil/@psutil-test-3005001234567890123456789: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_prog_w_funky_name ... /home/giampaolo/svn/psutil/@psutil-test-30050foo bar ): error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_cmdline ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 184, in test_proc_cmdline self.assertEqual(cmdline, [self.funky_name]) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80'] Second list contains 1 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80'] ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_exe ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 168, in test_proc_exe os.path.normcase(self.funky_name)) AssertionError: '' != '/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80' + /home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80 ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 175, in test_proc_name self.assertEqual(name, os.path.basename(self.funky_name)) AssertionError: '@psutil-test-30' != '@psutil-test-30050f\udcc0\udc80' - @psutil-test-30 + @psutil-test-30050f\udcc0\udc80 ? ++++++ ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_long_cmdline ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 736, in test_long_cmdline self.assertEqual(p.cmdline(), cmdline) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-[282 chars]789'] Second list contains 21 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789'] ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_long_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 750, in test_long_name self.assertEqual(p.name(), os.path.basename(long_name)) AssertionError: '@psutil-test-30' != '@psutil-test-3005001234567890123456789' - @psutil-test-30 + @psutil-test-3005001234567890123456789 ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_prog_w_funky_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 780, in test_prog_w_funky_name self.assertEqual(p.cmdline(), cmdline) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-[102 chars], ''] Second list contains 7 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050foo bar )' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050foo bar )', + '-c', + 'import time; [time.sleep(0.01) for x in range(3000)];arg1', + 'arg2', + '', + 'arg3', + ''] ----------------------------------------------------------------------