summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* don't use Pool ctx manager (py 2.7 compat)test-fetch-all-parallelGiampaolo Rodola2020-05-021-5/+11
|
* speedup process Pool by using imap_unordered (we don't care what order ↵Giampaolo Rodola2020-05-021-1/+1
| | | | processes come in)
* rewrite featch all procs test by using a process poolGiampaolo Rodola2020-05-021-118/+83
|
* 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.
* Drastically improve "make test/build" speed.Giampaolo Rodola2020-05-014-39/+39
| | | | | | | Doing "make install" before any test is slow and not really necessary. Instead do "make build", and remove the part import setuptools and test psutil can be imported (do that in make install instead). This way I went down from 0.8 secs (install phase before starting the test) to 0.3 secs!
* Revert #1736: Popen inheriting from subprocess (#1744)Giampaolo Rodola2020-05-015-112/+69
|
* Per-test file cleanup and new PsutilTestCase (#1743)Giampaolo Rodola2020-04-3018-269/+262
| | | | | 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).
* Merge branch 'test-runner-refact'Giampaolo Rodola2020-04-303-151/+159
|\
| * See: #1709: allow per-test parallelizationGiampaolo Rodola2020-04-308-170/+187
| | | | | | | | | | | | | | | | 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
* | Parallel build (#1741)Giampaolo Rodola2020-04-306-19/+28
|/
* 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-283-20/+24
|
* 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-288-60/+99
| | | | (#1736)
* add new termina() test utilGiampaolo Rodola2020-04-271-56/+73
|
* Merge branch 'master' into devreap-childrenGiampaolo Rodola2020-04-2625-134/+315
|\
| * Parallel tests (UNIX) (#1709)Giampaolo Rodola2020-04-2625-134/+315
| |
* | rename varGiampaolo Rodola2020-04-265-45/+45
|/
* trick to execute atexit functions in case of SIGTERMGiampaolo Rodola2020-04-251-21/+34
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-2410-355/+300
|\
| * Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-2410-355/+300
| |
* | Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-246-30/+111
|\ \ | |/
| * Backport python 3 super() (#1733)Giampaolo Rodola2020-04-247-34/+112
| |
* | skip scripts test if can't locate directoryGiampaolo Rodola2020-04-241-4/+1
|/ | | | | May happen on CI and when running tests via "python -m psutil.tests" since scripts dir is not installed.
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-2312-443/+572
|\
| * MemoryLeakTest class enhancements (#1731)Giampaolo Rodola2020-04-2313-442/+586
| |
| * Remove useless assignment (#1728)kaiix2020-04-161-1/+0
| |
* | Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-154-4/+4
|\ \ | |/
| * 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
| * Fixup release date (#1716)Andrey Babak2020-03-141-1/+1
| |
| * sensors_fans is not available on MacOS (#1710)crusaderky2020-03-042-2/+2
| |
* | update HISTORY/CREDITSGiampaolo Rodola2020-04-142-0/+14
|/
* 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-2116-173/+230
|
* fix KeyErrorrelease-5.7.0Giampaolo Rodola2020-02-181-1/+1
|
* Add C linter script (#1698)Giampaolo Rodola2020-02-1822-29/+128
|
* revert process_iter() exactly how it was pre #1667Giampaolo Rodola2020-02-182-5/+5
|
* revert #1667 process_iter() new_only paramGiampaolo Rodola2020-02-184-34/+2
| | | | | | | | | | 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.
* fix Makefile for freebsdGiampaolo Rodola2020-02-181-9/+7
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-02-171-9/+0
|\
| * Remove use of deprecated setuptools test_suite & tests_require (#1696)Jon Dufresne2020-02-171-9/+0
| | | | | | | | | | Since setuptools v41.5.0 (27 Oct 2019), the 'test' command is formally deprecated and should not be used. Test are still easy to run through tox -- as before.
* | #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-158-91/+24
|
* point all shebangs to python 3Giampaolo Rodola2020-02-1551-52/+52
|
* refactor print colors utilsGiampaolo Rodola2020-02-1510-208/+133
|