On Mon, Dec 04, 2017 at 01:07:09PM +0000, 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)
Ran 511 tests in 10.831s FAILED (failures=5, skipped=271) on another machine... so maybe something in the env. With py3 they indeed go into an infinite loop starting again forever. ok for the diff itself but please look at this py3 thing with tests, this is wrong.