Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | run process tests serially | Giampaolo Rodola | 2020-04-25 | 1 | -9/+0 |
| | |||||
* | refact | Giampaolo Rodola | 2020-04-25 | 1 | -2/+2 |
| | |||||
* | rename deco | Giampaolo Rodola | 2020-04-25 | 1 | -2/+2 |
| | |||||
* | merge from master | Giampaolo Rodola | 2020-04-25 | 1 | -11/+6 |
|\ | |||||
| * | Get rid of TESTFN global variable (#1734) | Giampaolo Rodola | 2020-04-24 | 1 | -11/+6 |
| | | |||||
* | | Merge branch 'master' into parallel-tests | Giampaolo Rodola | 2020-03-03 | 1 | -16/+0 |
|\ \ | |/ | |||||
| * | revert #1667 process_iter() new_only param | Giampaolo Rodola | 2020-02-18 | 1 | -16/+0 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | use @serial deco where needed | Giampaolo Rodola | 2020-02-16 | 1 | -0/+2 |
| | | |||||
* | | add run_from_name() util | Giampaolo Rodola | 2020-02-16 | 1 | -2/+2 |
| | | |||||
* | | run + print results | Giampaolo Rodola | 2020-02-16 | 1 | -2/+0 |
| | | |||||
* | | split in 2 test suites | Giampaolo Rodola | 2020-02-15 | 1 | -0/+2 |
|/ | |||||
* | point all shebangs to python 3 | Giampaolo Rodola | 2020-02-15 | 1 | -1/+1 |
| | |||||
* | divide test_system.py unit tests in multiple classes | Giampaolo Rodola | 2020-02-14 | 1 | -183/+200 |
| | |||||
* | fix pypy on Linux | Giampaolo Rodola | 2020-02-12 | 1 | -2/+2 |
| | |||||
* | Add support for PyPy on Windows (#1686) | Giampaolo Rodola | 2020-02-11 | 1 | -1/+6 |
| | |||||
* | Add CI testing for FreeBSD (#1671) | Giampaolo Rodola | 2020-01-24 | 1 | -7/+11 |
| | |||||
* | Add *new_only* parameter for process_iter() (#1667) | Giampaolo Rodola | 2020-01-18 | 1 | -1/+17 |
| | |||||
* | fix more CentOS failures | Giampaolo Rodola | 2019-10-10 | 1 | -10/+9 |
| | |||||
* | test_system: relax test_disk_partitions asserts on mountpoints (#1600) | Riccardo Magliocchetti | 2019-10-08 | 1 | -5/+2 |
| | | | | | | As on at least Solaris and modern Linux systems they can be files too. On linux bind mounts may commonly be used with containers. Fix #1573 | ||||
* | PEP-3151: backport FS exceptions to Python 2 (#1544) | Giampaolo Rodola | 2019-06-28 | 1 | -2/+2 |
| | |||||
* | Fix cpu freq (#1496) | David Brochart | 2019-04-26 | 1 | -1/+2 |
| | |||||
* | Implement getloadavg on Windows. Fixes #604 and #1484 (#1485) (patch by ↵ | Ammar Askar | 2019-04-11 | 1 | -0/+10 |
| | | | | Ammar Askar) | ||||
* | Big docfix (#1464) | Giampaolo Rodola | 2019-03-14 | 1 | -3/+3 |
| | | | | | | | * 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 Rodola | 2019-03-13 | 1 | -2/+2 |
| | |||||
* | Coloured tests (#1459) | Giampaolo Rodola | 2019-03-13 | 1 | -1/+1 |
| | | | Fixes #1458. | ||||
* | Fix #1329: [AIX] disable some functions based on availability in libperfstat ↵ | wiggin15 | 2019-03-05 | 1 | -0/+3 |
| | | | | (#1349) | ||||
* | fix #1437: return pids() in sorted order | Giampaolo Rodola | 2019-02-26 | 1 | -4/+4 |
| | |||||
* | #1428 in case of error, show the C syscall which caused it | Giampaolo Rodola | 2019-02-24 | 1 | -1/+3 |
| | |||||
* | fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATH | Giampaolo Rodola | 2018-10-19 | 1 | -5/+1 |
| | |||||
* | make test more robust | Giampaolo Rodola | 2018-08-15 | 1 | -5/+6 |
| | |||||
* | #1313 remove test which no longer makes sense | Giampaolo Rodola | 2018-07-29 | 1 | -6/+0 |
| | |||||
* | fix #1279: catch and skip ENODEV in net_if_stat() | Giampaolo Rodola | 2018-07-16 | 1 | -0/+10 |
| | |||||
* | Rename OSX to macOS (#1298) | Giampaolo Rodola | 2018-06-26 | 1 | -6/+6 |
| | | | rename OSX to macOS | ||||
* | 771 Windows CPU count (#1257) | Giampaolo Rodola | 2018-04-13 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use GetLogicalProcessorInformation() to get logical cpu_count() * return None if cpu_count() is undetermined + add mock test * style * factor out logical CPU num fun * remove unused code * psutil_get_num_cpus(): provide an option to fail on err * add comments * reuse get_num_cpus() function * error out if get_num_cpus() fail * use GetLogicalProcessorInformationEx to get phys CPU num * on win vista/xp just return None for phys CPU count * rename vars * fix C compiler warnings + remove mingw workarounds * return None if phys cpu count cant' be determined; update HISTORY * update HISTORY * update doc * add WMI tests * refactor tests * print debug msg for cpu phys returning None on win < 7 * try to fix win test * appveyor debug * fix typo * adjust appveyor 64 bit versions * debug msg * fix for loop * re-enable python versions * (maybe) finally fix GetLogicalProcessorInformationEx return len | ||||
* | Revert "Move tests out of package to top level directory (#1232)" (#1242) | Giampaolo Rodola | 2018-03-11 | 1 | -0/+862 |
| | | | This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581. | ||||
* | Move tests out of package to top level directory (#1232) | Jon Dufresne | 2018-03-09 | 1 | -862/+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. | ||||
* | re-enable test on appveyor; remove unused C code | Giampaolo Rodola | 2017-11-12 | 1 | -1/+3 |
| | |||||
* | #1152: (DeviceIOControl), skip disk on ERROR_INVALID_FUNCTION and ↵ | Giampaolo Rodola | 2017-11-12 | 1 | -1/+1 |
| | | | | ERROR_NOT_SUPPORTED | ||||
* | AIX support (#1123) | wiggin15 | 2017-09-26 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Fix #1055, fix #1085, fix #1087. | Giampaolo Rodola | 2017-05-19 | 1 | -0/+12 |
| | | | | | | | - 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 | ||||
* | fix 1062: avoid TypeError on disk|net_io_counters() if no disks or NICs are ↵ | Giampaolo Rodola | 2017-05-12 | 1 | -0/+18 |
| | | | | installed on the system | ||||
* | small test refactoring | Giampaolo Rodola | 2017-05-05 | 1 | -6/+2 |
| | |||||
* | fix failing test | Giampaolo Rodola | 2017-05-05 | 1 | -1/+1 |
| | |||||
* | fix #1051: make disk_usage() on python 3 able to deal with bytes | Giampaolo Rodola | 2017-05-04 | 1 | -5/+3 |
| | |||||
* | #1022 / users(): PID cannot be determined on OpenBSD so we set it to None | Giampaolo Rodola | 2017-05-01 | 1 | -3/+3 |
| | |||||
* | use HAS_ support constants in tests | Giampaolo Rodola | 2017-04-30 | 1 | -4/+3 |
| | |||||
* | define support constants to check availability of functionalities | Giampaolo Rodola | 2017-04-30 | 1 | -10/+10 |
| | |||||
* | avoid to use @skipUnless in tests; always use @skipIf (a lot clearer) | Giampaolo Rodola | 2017-04-30 | 1 | -11/+11 |
| | |||||
* | #1039 make sure we never return unicode | Giampaolo Rodola | 2017-04-30 | 1 | -15/+15 |
| | |||||
* | check named tuples | Giampaolo Rodola | 2017-04-30 | 1 | -0/+9 |
| |