On 12/04/17 14:07, Stuart Henderson wrote:
On 2017/12/04 12:19, Landry Breuil wrote:
On Mon, Dec 04, 2017 at 09:39:19AM +0100, Remi Pointel wrote:
Hi,
this is the diff to update py-psutil to latest release.
Ok?
Tests fails here:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File
"/home/ports/pobj/py-psutil-5.4.1/psutil-release-5.4.1/psutil/tests/__init__.py",
line 196, in _cleanup_files
if name.startswith(u(TESTFILE_PREFIX)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 8: ordinal
not in range(128)
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File
"/home/ports/pobj/py-psutil-5.4.1/psutil-release-5.4.1/psutil/tests/__init__.py",
line 196, in _cleanup_files
if name.startswith(u(TESTFILE_PREFIX)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 8: ordinal
not in range(128)
*** Error 1 in . (/home/ports/lang/python/python.port.mk:197 'do-test': @cd
/home/ports/pobj/py-psutil-5.4.1/psutil-release-5.4.1 && /usr/bi...)
Unicode sucks donkey balls, as usual.
If I try with py27 they seem to run OK:
Ran 511 tests in 7.972s
FAILED (failures=5, errors=2, skipped=271)
If I use a version of Python which isn't long dead, they work.
Then they work again. And again, and again, and again.
I haven't yet discovered if they ever finish...
Yes, it seems that they work, and work, and infinitely work with Python
3.6...
Remi.