summaryrefslogtreecommitdiff
path: root/psutil/tests/test_process.py
Commit message (Collapse)AuthorAgeFilesLines
* run process tests seriallyGiampaolo Rodola2020-04-251-3/+2
|
* refactGiampaolo Rodola2020-04-251-2/+2
|
* rename decoGiampaolo Rodola2020-04-251-2/+2
|
* merge from masterGiampaolo Rodola2020-04-251-43/+28
|\
| * Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-241-43/+28
| |
* | add run_from_name() utilGiampaolo Rodola2020-02-161-2/+2
| |
* | run + print resultsGiampaolo Rodola2020-02-161-0/+2
|/
* point all shebangs to python 3Giampaolo Rodola2020-02-151-1/+1
|
* refactor print colors utilsGiampaolo Rodola2020-02-151-1/+0
|
* Fix test errors for PYPY.Giampaolo Rodola2020-02-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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', + ''] ----------------------------------------------------------------------
* [Windows] use NtQuerySystemInformation to determine process exe() (#1677)Giampaolo Rodola2020-02-011-0/+10
|
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-291-6/+1
|
* fix Cirrus failureGiampaolo Rodola2020-01-241-2/+3
|
* Add CI testing for FreeBSD (#1671)Giampaolo Rodola2020-01-241-1/+1
|
* fix open_files() tests broken on windows due to case sensitivenessGiampaolo Rodola2020-01-031-10/+11
|
* #1594: set a limit for eligible CPUs combinationsGiampaolo Rodola2019-09-261-0/+2
|
* fix #1527: Linux process CPU iowait timeGiampaolo Rodola2019-09-071-0/+2
|
* fix various testsGiampaolo Rodola2019-06-141-1/+3
|
* Fix #1276: [AIX] use getargs to get process cmdline (#1500) (patch by ↵wiggin152019-05-061-0/+16
| | | | @wiggin15)
* fix linux testsfix-testsGiampaolo Rodola2019-04-051-2/+2
|
* remove outdated testsGiampaolo Rodola2019-04-051-4/+0
|
* [Win] Process IO priority constants + high priority (#1479 / #1476)Giampaolo Rodola2019-04-051-26/+31
|
* refactor ionice() on LinuxGiampaolo Rodola2019-04-041-29/+27
|
* ionice test refactoringGiampaolo Rodola2019-04-041-48/+50
|
* Big docfix (#1464)Giampaolo Rodola2019-03-141-2/+2
| | | | | | | * 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.
* #1291: (BACKWARD-INCOMPATIBLE) remove memory_maps() on OSXGiampaolo Rodola2019-02-281-2/+0
|
* #1291 / OSX: mark memory_maps() as deprecated and make it alwats raise ↵Giampaolo Rodola2019-02-271-1/+3
| | | | AccessDenied
* add win tests related to send_signal(CTRL_C_EVENT) #1227Giampaolo Rodola2019-02-261-4/+8
|
* fix win testGiampaolo Rodola2019-02-261-3/+0
|
* fix win testsGiampaolo Rodola2019-02-261-4/+7
|
* #fix 1438: do not return any parent() for PID 0 + update docGiampaolo Rodola2019-02-261-0/+21
|
* Add Process.parents() method (#1433)Giampaolo Rodola2019-02-251-0/+11
|
* #1373: different approach to oneshot() cache (pass Process instances around ↵Giampaolo Rodola2018-12-131-0/+15
| | | | - which is faster)
* fix travisGiampaolo Rodola2018-10-121-2/+3
|
* fix different travis failuresGiampaolo Rodola2018-10-121-0/+3
|
* Fix decoding error in testsGiampaolo Rodola2018-09-281-1/+2
| | | | https://travis-ci.org/giampaolo/psutil/jobs/434570177
* remove failing test assertionsGiampaolo Rodola2018-08-151-8/+2
|
* remove failing testGiampaolo Rodola2018-08-151-3/+0
|
* Rename OSX to macOS (#1298)Giampaolo Rodola2018-06-261-12/+12
| | | rename OSX to macOS
* try to fix occasional children() failure on Win: ↵Giampaolo Rodola2018-06-271-0/+1
| | | | https://ci.appveyor.com/project/giampaolo/psutil/build/job/je3qyldbb86ff66h
* remove incorrect test assumption that proc cpu percent on windows is ↵Giampaolo Rodola2018-04-121-4/+0
| | | | supposed to be <= 100, see https://ci.appveyor.com/project/giampaolo/psutil/build/1477/job/w1e0u92xrgg91ye3
* fix appveyor failure, see ↵Giampaolo Rodola2018-03-281-2/+2
| | | | https://ci.appveyor.com/project/giampaolo/psutil/build/job/6in5bk62ekiploys
* Revert "Move tests out of package to top level directory (#1232)" (#1242)Giampaolo Rodola2018-03-111-0/+1567
| | | This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.
* Move tests out of package to top level directory (#1232)Jon Dufresne2018-03-091-1567/+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.
* test environ: clean returned dictGiampaolo Rodola2018-03-081-1/+3
|
* add test for cpu_affinityGiampaolo Rodola2017-12-091-2/+19
|
* fix testGiampaolo Rodola2017-12-051-3/+3
|
* refactor environ() testGiampaolo Rodola2017-12-041-21/+15
|