summaryrefslogtreecommitdiff
path: root/psutil/tests/test_unicode.py
Commit message (Collapse)AuthorAgeFilesLines
* wait for orphaned childrenGiampaolo Rodola2020-04-251-0/+2
|
* unicode tests can run in parallelGiampaolo Rodola2020-04-251-2/+0
|
* rename decoGiampaolo Rodola2020-04-251-2/+2
|
* merge from masterGiampaolo Rodola2020-04-251-61/+51
|\
| * Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-241-61/+51
| |
* | skip more testsGiampaolo Rodola2020-02-161-0/+2
| |
* | add run_from_name() utilGiampaolo Rodola2020-02-161-2/+2
|/
* point all shebangs to python 3Giampaolo Rodola2020-02-151-1/+1
|
* fix testsGiampaolo Rodola2020-02-131-0/+4
|
* #1659: provide error message in case of bugged PYPY2 versionGiampaolo Rodola2020-02-141-4/+0
|
* refactor docGiampaolo Rodola2020-02-121-5/+26
|
* Add support for PyPy on Windows (#1686)Giampaolo Rodola2020-02-111-0/+5
|
* Fix test errors for PYPY.Giampaolo Rodola2020-02-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-25/+1
|
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-291-1/+2
|
* Add CI testing for FreeBSD (#1671)Giampaolo Rodola2020-01-241-7/+4
|
* fix open_files() tests broken on windows due to case sensitivenessGiampaolo Rodola2020-01-031-1/+2
|
* test runner refactoring (avoid code duplication)Giampaolo Rodola2019-03-131-2/+2
|
* Coloured tests (#1459)Giampaolo Rodola2019-03-131-1/+1
| | | Fixes #1458.
* skip test on PYPY + TravisGiampaolo Rodola2018-10-121-0/+1
|
* fix different travis failuresGiampaolo Rodola2018-10-121-0/+3
|
* Rename OSX to macOS (#1298)Giampaolo Rodola2018-06-261-3/+3
| | | rename OSX to macOS
* Revert "Move tests out of package to top level directory (#1232)" (#1242)Giampaolo Rodola2018-03-111-0/+366
| | | This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.
* Move tests out of package to top level directory (#1232)Jon Dufresne2018-03-091-366/+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.
* Remove unused import 'psutil.tests' in test_unicode.py (#1231)Jon Dufresne2018-03-081-1/+0
|
* try to fix appveyor failure; also refactor generate_manifest.pyGiampaolo Rodola2017-11-081-1/+1
|
* try to limit false positives on appveyor/windowsGiampaolo Rodola2017-11-041-8/+9
|
* reap_children() in a finally block in order to limit false positivesGiampaolo Rodola2017-11-041-1/+2
|
* unicode tests: use different name for test dirGiampaolo Rodola2017-11-041-5/+9
|
* give CREDITS to @adpag for #1159, #1160 and #1161Giampaolo Rodola2017-10-281-1/+3
|
* Fix test asserts due to leftover test subprocesses (#1161)Adrian Page2017-10-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reap test subprocess. The leftover child process was triggering an assert in a later test: ====================================================================== FAIL: psutil.tests.test_connections.TestConnectedSocketPairs.test_combos ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ade/projects/psutil/psutil/tests/__init__.py", line 792, in wrapper return fun(*args, **kwargs) File "/home/ade/projects/psutil/psutil/tests/test_connections.py", line 330, in test_combos self.assertEqual(len(cons), 1) AssertionError: 0 != 1 * Inherit from Base so that reap_children() cleans up the test processes. Fixes memory leak test asserts. psutil/tests/test_memory_leaks.py:334: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ psutil/tests/test_memory_leaks.py:125: in execute self.assertEqual(thisproc.children(), []) E AssertionError: Lists differ: [<psutil.Process(pid=908, name... != [] E E First list contains 10 additional elements. E First extra element 0: E <psutil.Process(pid=908, name='python2.7') at 34513317008> E E + [] E - [<psutil.Process(pid=908, name='python2.7') at 34513317008>, E - <psutil.Process(pid=909, name='python2.7') at 34459063760>, E - <psutil.Process(pid=910, name='python2.7') at 34459064464>, E - <psutil.Process(pid=911, name='python2.7') at 34513749456>, E - <psutil.Process(pid=912, name='python2.7') at 34513749520>, E - <psutil.Process(pid=913, name='python2.7') at 34513751184>, E - <psutil.Process(pid=914, name='python2.7') at 34513751120>, E - <psutil.Process(pid=915, name='python2.7') at 34513751312>, E - <psutil.Process(pid=916, name='python2.7') at 34513751376>, E - <psutil.Process(pid=917, name='python2.7') at 34513748176>]
* update doc urlGiampaolo Rodola2017-09-071-1/+1
|
* remove dead codeGiampaolo Rodola2017-05-191-15/+0
|
* skip UNIX socket tests on SUNOSGiampaolo Rodola2017-05-181-0/+2
|
* test utils refactoringGiampaolo Rodola2017-05-171-0/+2
|
* smarter appveyor commit files filteringGiampaolo Rodola2017-05-171-1/+0
|
* Ignore arcane safe_rmpath error on APPVEYOR.Giampaolo Rodola2017-05-171-1/+23
| | | | | | | | See: https://ci.appveyor.com/project/giampaolo/psutil/build/job/jiq2cgd6stsbtn60 This is weird, and I'm afraid it means wait_procs() on Win may be broken (because of STILL_ACTIVE?). Add signalers in reap_children() that may help figure out whether this is the case.
* try to avoid failures on winGiampaolo Rodola2017-05-121-0/+16
|
* 1058 enable fix warnings (#1059)Giampaolo Rodola2017-05-101-1/+9
| | | | | | | | | | | | | | | | | | * #1058: have Makefile use PYTHONWARNINGS=all by default for (almost) all commands * #1058 fix linux tests warnings * #1058: try not to use imp module * #1058: get rid of imp module completely * #1058: ignore unicode warnings * #1058: ignore stderr from procsmem.py * #1058: fix resource warning from Popen * #1058: get rid of contextlib.nested (deprecated)
* make test file executableGiampaolo Rodola2017-05-051-0/+0
|
* use mock to raise an exc instead of picking up the low level C functionGiampaolo Rodola2017-05-051-5/+9
|
* skip failing testGiampaolo Rodola2017-05-041-0/+1
|
* try to minimize dll related test failuresGiampaolo Rodola2017-05-041-1/+0
|
* update notesGiampaolo Rodola2017-05-041-17/+3
|
* assume that internally python 3 never deals with bytes; also update unicode ↵Giampaolo Rodola2017-05-031-45/+50
| | | | notes
* skip memory_maps unicode test: ctypes opens a message box which blocks the ↵Giampaolo Rodola2017-05-031-13/+3
| | | | test suite
* clearer msg in case of failureGiampaolo Rodola2017-05-031-0/+2
|
* refactor copyload_shared_libGiampaolo Rodola2017-05-021-2/+4
|
* tunr copyload_shared_lib into a ctx manager and refactor testsGiampaolo Rodola2017-05-021-22/+25
|
* skip failing tests on openbsdGiampaolo Rodola2017-05-021-4/+9
|