summaryrefslogtreecommitdiff
path: root/psutil/tests/test_system.py
Commit message (Collapse)AuthorAgeFilesLines
* run process tests seriallyGiampaolo Rodola2020-04-251-9/+0
|
* refactGiampaolo Rodola2020-04-251-2/+2
|
* rename decoGiampaolo Rodola2020-04-251-2/+2
|
* merge from masterGiampaolo Rodola2020-04-251-11/+6
|\
| * Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-241-11/+6
| |
* | Merge branch 'master' into parallel-testsGiampaolo Rodola2020-03-031-16/+0
|\ \ | |/
| * revert #1667 process_iter() new_only paramGiampaolo Rodola2020-02-181-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 neededGiampaolo Rodola2020-02-161-0/+2
| |
* | add run_from_name() utilGiampaolo Rodola2020-02-161-2/+2
| |
* | run + print resultsGiampaolo Rodola2020-02-161-2/+0
| |
* | split in 2 test suitesGiampaolo Rodola2020-02-151-0/+2
|/
* point all shebangs to python 3Giampaolo Rodola2020-02-151-1/+1
|
* divide test_system.py unit tests in multiple classesGiampaolo Rodola2020-02-141-183/+200
|
* fix pypy on LinuxGiampaolo Rodola2020-02-121-2/+2
|
* Add support for PyPy on Windows (#1686)Giampaolo Rodola2020-02-111-1/+6
|
* Add CI testing for FreeBSD (#1671)Giampaolo Rodola2020-01-241-7/+11
|
* Add *new_only* parameter for process_iter() (#1667)Giampaolo Rodola2020-01-181-1/+17
|
* fix more CentOS failuresGiampaolo Rodola2019-10-101-10/+9
|
* test_system: relax test_disk_partitions asserts on mountpoints (#1600)Riccardo Magliocchetti2019-10-081-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 Rodola2019-06-281-2/+2
|
* Fix cpu freq (#1496)David Brochart2019-04-261-1/+2
|
* Implement getloadavg on Windows. Fixes #604 and #1484 (#1485) (patch by ↵Ammar Askar2019-04-111-0/+10
| | | | Ammar Askar)
* Big docfix (#1464)Giampaolo Rodola2019-03-141-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 Rodola2019-03-131-2/+2
|
* Coloured tests (#1459)Giampaolo Rodola2019-03-131-1/+1
| | | Fixes #1458.
* Fix #1329: [AIX] disable some functions based on availability in libperfstat ↵wiggin152019-03-051-0/+3
| | | | (#1349)
* fix #1437: return pids() in sorted orderGiampaolo Rodola2019-02-261-4/+4
|
* #1428 in case of error, show the C syscall which caused itGiampaolo Rodola2019-02-241-1/+3
|
* fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATHGiampaolo Rodola2018-10-191-5/+1
|
* make test more robustGiampaolo Rodola2018-08-151-5/+6
|
* #1313 remove test which no longer makes senseGiampaolo Rodola2018-07-291-6/+0
|
* fix #1279: catch and skip ENODEV in net_if_stat()Giampaolo Rodola2018-07-161-0/+10
|
* Rename OSX to macOS (#1298)Giampaolo Rodola2018-06-261-6/+6
| | | rename OSX to macOS
* 771 Windows CPU count (#1257)Giampaolo Rodola2018-04-131-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 Rodola2018-03-111-0/+862
| | | This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.
* Move tests out of package to top level directory (#1232)Jon Dufresne2018-03-091-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 codeGiampaolo Rodola2017-11-121-1/+3
|
* #1152: (DeviceIOControl), skip disk on ERROR_INVALID_FUNCTION and ↵Giampaolo Rodola2017-11-121-1/+1
| | | | ERROR_NOT_SUPPORTED
* AIX support (#1123)wiggin152017-09-261-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 Rodola2017-05-191-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 Rodola2017-05-121-0/+18
| | | | installed on the system
* small test refactoringGiampaolo Rodola2017-05-051-6/+2
|
* fix failing testGiampaolo Rodola2017-05-051-1/+1
|
* fix #1051: make disk_usage() on python 3 able to deal with bytesGiampaolo Rodola2017-05-041-5/+3
|
* #1022 / users(): PID cannot be determined on OpenBSD so we set it to NoneGiampaolo Rodola2017-05-011-3/+3
|
* use HAS_ support constants in testsGiampaolo Rodola2017-04-301-4/+3
|
* define support constants to check availability of functionalitiesGiampaolo Rodola2017-04-301-10/+10
|
* avoid to use @skipUnless in tests; always use @skipIf (a lot clearer)Giampaolo Rodola2017-04-301-11/+11
|
* #1039 make sure we never return unicodeGiampaolo Rodola2017-04-301-15/+15
|
* check named tuplesGiampaolo Rodola2017-04-301-0/+9
|