summaryrefslogtreecommitdiff
path: root/psutil/tests/test_process.py
Commit message (Collapse)AuthorAgeFilesLines
* fix linux testsfix-testsGiampaolo Rodola2019-04-051-2/+2
|
* remove outdated testsGiampaolo Rodola2019-04-051-4/+0
|
* [Win] Process IO priority constants + high priority (#1479 / #1476)Giampaolo Rodola2019-04-051-26/+31
|
* refactor ionice() on LinuxGiampaolo Rodola2019-04-041-29/+27
|
* ionice test refactoringGiampaolo Rodola2019-04-041-48/+50
|
* Big docfix (#1464)Giampaolo Rodola2019-03-141-2/+2
| | | | | | | * use https wherever possible * always point to python 3 doc * point to new MSDN urls * use RST references and avoid repetitions of URLs
* test runner refactoring (avoid code duplication)Giampaolo Rodola2019-03-131-2/+2
|
* Coloured tests (#1459)Giampaolo Rodola2019-03-131-1/+1
| | | Fixes #1458.
* #1291: (BACKWARD-INCOMPATIBLE) remove memory_maps() on OSXGiampaolo Rodola2019-02-281-2/+0
|
* #1291 / OSX: mark memory_maps() as deprecated and make it alwats raise ↵Giampaolo Rodola2019-02-271-1/+3
| | | | AccessDenied
* add win tests related to send_signal(CTRL_C_EVENT) #1227Giampaolo Rodola2019-02-261-4/+8
|
* fix win testGiampaolo Rodola2019-02-261-3/+0
|
* fix win testsGiampaolo Rodola2019-02-261-4/+7
|
* #fix 1438: do not return any parent() for PID 0 + update docGiampaolo Rodola2019-02-261-0/+21
|
* Add Process.parents() method (#1433)Giampaolo Rodola2019-02-251-0/+11
|
* #1373: different approach to oneshot() cache (pass Process instances around ↵Giampaolo Rodola2018-12-131-0/+15
| | | | - which is faster)
* fix travisGiampaolo Rodola2018-10-121-2/+3
|
* fix different travis failuresGiampaolo Rodola2018-10-121-0/+3
|
* Fix decoding error in testsGiampaolo Rodola2018-09-281-1/+2
| | | | https://travis-ci.org/giampaolo/psutil/jobs/434570177
* remove failing test assertionsGiampaolo Rodola2018-08-151-8/+2
|
* remove failing testGiampaolo Rodola2018-08-151-3/+0
|
* Rename OSX to macOS (#1298)Giampaolo Rodola2018-06-261-12/+12
| | | rename OSX to macOS
* try to fix occasional children() failure on Win: ↵Giampaolo Rodola2018-06-271-0/+1
| | | | https://ci.appveyor.com/project/giampaolo/psutil/build/job/je3qyldbb86ff66h
* remove incorrect test assumption that proc cpu percent on windows is ↵Giampaolo Rodola2018-04-121-4/+0
| | | | supposed to be <= 100, see https://ci.appveyor.com/project/giampaolo/psutil/build/1477/job/w1e0u92xrgg91ye3
* fix appveyor failure, see ↵Giampaolo Rodola2018-03-281-2/+2
| | | | https://ci.appveyor.com/project/giampaolo/psutil/build/job/6in5bk62ekiploys
* Revert "Move tests out of package to top level directory (#1232)" (#1242)Giampaolo Rodola2018-03-111-0/+1567
| | | This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.
* Move tests out of package to top level directory (#1232)Jon Dufresne2018-03-091-1567/+0
| | | | | | | | Cleanly separates tests from the package itself. Prevents the tests being installed to site-packages. Tests are still distributed with the source distribution by MANIFEST.in. Avoids installing tests in production environments, leading to less total code in the environment.
* test environ: clean returned dictGiampaolo Rodola2018-03-081-1/+3
|
* add test for cpu_affinityGiampaolo Rodola2017-12-091-2/+19
|
* fix testGiampaolo Rodola2017-12-051-3/+3
|
* refactor environ() testGiampaolo Rodola2017-12-041-21/+15
|
* Fix OSX pid 0 bug (#1187)Giampaolo Rodola2017-12-041-4/+8
| | | | | | | | | | | | | | | | * debug * change travis conf * more debug info * work around pid 0 on osx * fix pid 0 bug * skip failing test on OSX + TRAVIS which started failing all of the sudden * skip failing test on osx + travis
* AIX: implement num_ctx_switches (#1164)wiggin152017-10-311-2/+0
| | | | | | * small changes * AIX: implement num_ctx_switches
* improve logic to determine python exe locationGiampaolo Rodola2017-10-301-16/+17
|
* try to limit occasional appveyor failureGiampaolo Rodola2017-10-291-1/+11
|
* Fix #1154: remove 'threads' method on older AIX (#1156)wiggin152017-10-281-0/+3
|
* Terminate Windows processes with SIGTERM code rather than 0 (#1150)Akos Kiss2017-10-201-5/+5
| | | | | | | | If the TerminateProcess WinAPI function is called with 0, then the exit code of the terminated process (e.g., observed by its parent) will be 0. However, this is usually associated with successful execution. Any other exit code could be used to signal forced termination, but perhaps the value of SIGTERM is the most meaningful.
* fix or skip remaining AIX unit tests (#1145)wiggin152017-10-191-1/+3
| | | | | | * create_exe should use default code if c_code is True * fix or skip remaining AIX unit tests
* work around travis failureGiampaolo Rodola2017-10-061-18/+3
|
* investigat travis failureGiampaolo Rodola2017-10-061-1/+2
|
* investigat travis failureGiampaolo Rodola2017-10-061-1/+4
|
* investigate travis failureGiampaolo Rodola2017-10-061-0/+3
|
* AIX support (#1123)wiggin152017-09-261-1/+4
| | | | | | | | | | | | | | | | | | | | * AIX support * AIX support * AIX support * AIX support - use get_procfs_path() instead of /proc * AIX support - group sections like in other modules * AIX support * AIX support * AIX support * AIX support - remove unnecessary dict copy
* try to fix travis failureGiampaolo Rodola2017-09-261-2/+17
|
* #1126: temporarily disable failing testGiampaolo Rodola2017-09-101-0/+2
|
* 1044 osx zombies (#1100)Giampaolo Rodola2017-06-071-90/+53
| | | | | | | | | | | | | | | | | | | | | | * small refactoring * #1044: define a separate ctx manager which handles zombie processes * add create_zombie_proc utility function * disable test on windows * #1044: cmdline() was incorrectly raising AD instead of ZombieProcess * #1044: environ() was incorrectly raising AD instead of ZombieProcess * #1044: memory_maps() was incorrectly raising AD instead of ZombieProcess * #1044: threads() was incorrectly raising AD instead of ZombieProcess * enhance test * fix threads()
* Fix #1055, fix #1085, fix #1087.Giampaolo Rodola2017-05-191-0/+6
| | | | | | | - no longer cache cpu_count() return value in Process.cpu_percent() - in Process.cpu_percent(), guard against cpu_count() returning None and assume 1 instead - add test cases
* PSUTIL_TESTING env var (#1083)Giampaolo Rodola2017-05-181-0/+2
| | | | | | | | | | | | | | * Introduce PSUTIL_TESTING env var ...so that we can make stricter assertions in C and py code during tests only. * define a C function in _common.c which returns whether the var is set * set PSUTIL_TESTING from the Makefile * cache psutil_testing() result * winmake: set PSUTIL_TESTING env var for tests
* skip signal.CTRL_ test on py 2.6Giampaolo Rodola2017-05-171-1/+1
|
* add Popen test for making sure NSP is raised on kill() and terminate()Giampaolo Rodola2017-05-171-9/+24
|