| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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',
+ '']
----------------------------------------------------------------------
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Fixes #1458.
|
| |
|
| |
|
|
|
| |
rename OSX to macOS
|
|
|
| |
This reverts commit b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>]
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* #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)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
notes
|
|
|
|
| |
test suite
|
| |
|
| |
|
| |
|
| |
|