summaryrefslogtreecommitdiff
path: root/psutil
Commit message (Collapse)AuthorAgeFilesLines
* Enhance Process repr and add exit codewait-exit-codeGiampaolo Rodola2020-05-023-13/+22
| | | | | Show exit code if wait() was used and also use cached name if name() fails.
* remove Popen.wait() method (duplicate)Giampaolo Rodola2020-05-022-12/+1
|
* refactorGiampaolo Rodola2020-05-021-16/+2
|
* remove duplicate testGiampaolo Rodola2020-05-021-9/+0
|
* refactor testsGiampaolo Rodola2020-05-023-55/+79
|
* cache wait() ret valGiampaolo Rodola2020-05-023-7/+11
|
* move testsGiampaolo Rodola2020-05-022-66/+39
|
* localize variable access for speedupGiampaolo Rodola2020-05-023-22/+35
|
* handle SIGSTOP and SIGCONTGiampaolo Rodola2020-05-023-23/+59
|
* refactor wait_pid() and write unit testsGiampaolo Rodola2020-05-022-28/+69
|
* cleanup psutil mod namespace a bitGiampaolo Rodola2020-05-011-21/+18
|
* refactor signal testsGiampaolo Rodola2020-05-011-50/+38
|
* fix AttributeErrorGiampaolo Rodola2020-05-011-2/+8
|
* Refactor process test utils methods (#1745)Giampaolo Rodola2020-05-0111-178/+151
| | | ...in order to accomodate Cygwin implementation.
* Revert #1736: Popen inheriting from subprocess (#1744)Giampaolo Rodola2020-05-013-75/+55
|
* Per-test file cleanup and new PsutilTestCase (#1743)Giampaolo Rodola2020-04-3016-260/+256
| | | | | Test files/dirs are now removed after each test. when invoked via self.get_testfn(). Until now test files were stored in a global variable and were removed at process exit, via atexit.register(), but this didn't work with parallel tests because the fork()ed workers use os._exit(0), preventing cleanup functions to run. All test classes now inherit from PsutilTestCase class, which provides the most important methods requiring an automatic cleanup (get_test_subprocess() and others).
* See: #1709: allow per-test parallelizationGiampaolo Rodola2020-04-303-141/+148
| | | | | | | | Refactor test runner.py with a saner unittest-based class hierarchy so that --parallel args affects all test suites (all, by-name, failed). Also change Makefile which now can be used like this: make test-process ARGS=--parallel
* 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
|