summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'win-cpu-times-refact' of github.com:giampaolo/psutil into ↵win-cpu-times-refactGiampaolo Rodola2020-02-130-0/+0
|\ | | | | | | win-cpu-times-refact
| * remove cache for proc_times(): unnecessary because create_time() is already ↵Giampaolo Rodola2020-02-131-9/+4
| | | | | | | | cached
| * rename varGiampaolo Rodola2020-02-131-1/+1
| |
| * bind cpu_times() and create_time() with oneshot()Giampaolo Rodola2020-02-131-2/+9
| |
| * remove unnecessary wrap_exceptions decoGiampaolo Rodola2020-02-131-1/+0
| |
| * rename methodGiampaolo Rodola2020-02-131-10/+10
| |
| * refactoring: get rid of duplicated code; use one function to return (user, ↵Giampaolo Rodola2020-02-132-47/+8
| | | | | | | | sys, create time)
* | refactoring: get rid of duplicated code; use one function to return (user, ↵Giampaolo Rodola2020-02-132-58/+20
|/ | | | | | | | | | | | | | sys, create time) rename method remove unnecessary wrap_exceptions deco bind cpu_times() and create_time() with oneshot() rename var remove cache for proc_times(): unnecessary because create_time() is already cached
* [Windows] increase precision of boot_time() and proc create_time() (#1693)Giampaolo Rodola2020-02-135-64/+60
|
* #1672: warning pre-processor directive don't work on win + py2; also if ↵Giampaolo Rodola2020-02-132-8/+5
| | | | struct.calcsize('l') < 8 assume int
* small refactoring to accomodate #1691Giampaolo Rodola2020-02-131-5/+6
|
* fix #1688: use python3 in GIT commit hook hashbangGiampaolo Rodola2020-02-131-1/+1
|
* #1672: determine pid_t size at runtime in setup.pyGiampaolo Rodola2020-02-123-3/+17
|
* refactoringGiampaolo Rodola2020-02-122-44/+52
|
* merge from masterGiampaolo Rodola2020-02-1221-225/+218
|\
| * fix pypy on LinuxGiampaolo Rodola2020-02-123-46/+42
| |
| * refactor docGiampaolo Rodola2020-02-127-173/+75
| |
| * Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-02-1114-41/+141
| |\
| | * Add support for PyPy on Windows (#1686)Giampaolo Rodola2020-02-1115-44/+144
| | |
| * | try to fix travis testGiampaolo Rodola2020-02-111-0/+3
| | |
| * | fix #1576: remove code duplicate for create_time / boot_timeGiampaolo Rodola2020-02-111-3/+0
| |/
* | windows: convert pid_t to DWORDGiampaolo Rodola2020-02-111-2/+2
| |
* | merge from masterGiampaolo Rodola2020-02-111-0/+5
| |
* | Merge branch 'master' of https://github.com/giampaolo/psutilGiampaolo Rodola2020-02-1117-114/+178
|\ \ | |/
| * fix #1627: [Linux] Process.memory_maps() can raise KeyErrorGiampaolo Rodola2020-02-112-1/+2
| |
| * small refactGiampaolo Rodola2020-02-112-4/+3
| |
| * fix #1681 / linux / disk_partitions: show swapGiampaolo Rodola2020-02-114-0/+47
| |
| * skip memleak tests on PyPy: they are unreliable probably because of the JITGiampaolo Rodola2020-02-105-23/+16
| |
| * Enable PyPy3 on CI (#1682)johnthagen2020-02-091-1/+1
| |
| * Fix test errors for PYPY.Giampaolo Rodola2020-02-093-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It looks like PYPY implementation has some issues with strings (or maybe it's a subprocess bug?). Anyway, this is the full output: PYTHONWARNINGS=all PSUTIL_TESTING=1 PSUTIL_DEBUG=1 pypy3 -c "import psutil.tests.runner as r; r.run(last_failed=True)" psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_cmdline ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_exe ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_name ... /home/giampaolo/svn/psutil/@psutil-test-30050f��: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_long_cmdline ... /home/giampaolo/svn/psutil/@psutil-test-30050: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_long_name ... /home/giampaolo/svn/psutil/@psutil-test-3005001234567890123456789: error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL psutil.tests.test_process.TestProcess.test_prog_w_funky_name ... /home/giampaolo/svn/psutil/@psutil-test-30050foo bar ): error while loading shared libraries: libpypy3-c.so: cannot open shared object file: No such file or directory FAIL ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_cmdline ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 184, in test_proc_cmdline self.assertEqual(cmdline, [self.funky_name]) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80'] Second list contains 1 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80'] ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_exe ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 168, in test_proc_exe os.path.normcase(self.funky_name)) AssertionError: '' != '/home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80' + /home/giampaolo/svn/psutil/@psutil-test-30050f\udcc0\udc80 ====================================================================== FAIL: psutil.tests.test_unicode.TestFSAPIsWithInvalidPath.test_proc_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_unicode.py", line 175, in test_proc_name self.assertEqual(name, os.path.basename(self.funky_name)) AssertionError: '@psutil-test-30' != '@psutil-test-30050f\udcc0\udc80' - @psutil-test-30 + @psutil-test-30050f\udcc0\udc80 ? ++++++ ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_long_cmdline ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 736, in test_long_cmdline self.assertEqual(p.cmdline(), cmdline) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-[282 chars]789'] Second list contains 21 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789', + '0123456789'] ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_long_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 750, in test_long_name self.assertEqual(p.name(), os.path.basename(long_name)) AssertionError: '@psutil-test-30' != '@psutil-test-3005001234567890123456789' - @psutil-test-30 + @psutil-test-3005001234567890123456789 ====================================================================== FAIL: psutil.tests.test_process.TestProcess.test_prog_w_funky_name ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_process.py", line 780, in test_prog_w_funky_name self.assertEqual(p.cmdline(), cmdline) AssertionError: Lists differ: [] != ['/home/giampaolo/svn/psutil/@psutil-test-[102 chars], ''] Second list contains 7 additional elements. First extra element 0: '/home/giampaolo/svn/psutil/@psutil-test-30050foo bar )' - [] + ['/home/giampaolo/svn/psutil/@psutil-test-30050foo bar )', + '-c', + 'import time; [time.sleep(0.01) for x in range(3000)];arg1', + 'arg2', + '', + 'arg3', + ''] ----------------------------------------------------------------------
| * #1672, #1682: SIZEOF_INT is not available on pypy3; assume that on systems ↵Giampaolo Rodola2020-02-092-9/+16
| | | | | | | | where pid_t size can't be determined at runtime pid_t is an int
| * [Linux] disk_io_counters() ValueError when parsing /sys/block (#1684)Giampaolo Rodola2020-02-093-22/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: ``` ====================================================================== ERROR: psutil.tests.test_linux.TestSystemDiskIoCounters.test_emulate_use_sysfs ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_linux.py", line 1195, in test_emulate_use_sysfs wsysfs = psutil.disk_io_counters(perdisk=True) File "/home/giampaolo/svn/psutil/psutil/__init__.py", line 2065, in disk_io_counters rawdict = _psplatform.disk_io_counters(**kwargs) File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1124, in disk_io_counters for entry in gen: File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1110, in read_sysfs wbytes, wtime, _, busy_time, _) = map(int, fields) ValueError: too many values to unpack (expected 11) ```
| * fix #1650 [Linux] sensors_temperatures() no longer emit warnings on file not ↵Giampaolo Rodola2020-02-093-5/+15
| | | | | | | | found (print debug msg instead)
| * update docGiampaolo Rodola2020-02-071-1/+1
| |
| * fix #1674, SunOS: disk_partitions() may raise OSError.Giampaolo Rodola2020-02-072-2/+7
| |
| * Reference exact CVE in HISTORY for 5.6.6 (#1653)Adam Johnson2020-02-051-1/+3
| |
| * [Windows] speedup connections (#1679)Giampaolo Rodola2020-02-052-49/+60
| |
| * Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-02-042-93/+73
| |\
| * | #1610: clarify in the doc what cpu_count meansGiampaolo Rodola2020-02-041-2/+4
| | |
* | | Merge branch 'master' of https://github.com/giampaolo/psutilGiampaolo Rodola2020-02-031-92/+72
|\ \ \ | | |/ | |/|
| * | [Windows] connections() refactoring (#1678)Giampaolo Rodola2020-02-012-93/+73
| |/
* | print-ad.py: double sortGiampaolo Rodola2020-02-011-1/+1
|/
* [Windows] use NtQuerySystemInformation to determine process exe() (#1677)Giampaolo Rodola2020-02-0110-121/+104
|
* small C refactoringGiampaolo Rodola2020-02-012-21/+5
|
* update HISTORYGiampaolo Rodola2020-01-301-0/+1
|
* Add special case for psutil_proc_cwd/NetBSD (#1538)Kamil Rytarowski2020-01-301-1/+4
|
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-2932-245/+301
|
* OpenBSD fixes (#1673)Giampaolo Rodola2020-01-277-115/+69
|
* run py2 tests on cirrusGiampaolo Rodola2020-01-241-2/+2
|
* Cirrus: enable python 2Giampaolo Rodola2020-01-241-2/+17
|