R. David Murray rdmur...@bitdance.com added the comment:
We could, however, raise SkipTest if getpriority returns 19 or higher with a
message like unable to reliably test setpriority at current nice level of NN.
My guess is that no system we support has a lower upper limit on nice. If
R. David Murray rdmur...@bitdance.com added the comment:
To be clear: raise SkipTest if prio is 19 or above *and* the increment fails.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11348
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Committed in r88680.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11348
___
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
$ nice -n20 python3.3 -m test.test_os
...
test_set_get_priority (__main__.ProgramPriorityTests) ... FAIL
==
FAIL: test_set_get_priority
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Of course the test fails: a process can't have a nice value higher than a
certain limit, which I think can vary depending on the UNIX variant in use. The
fix is not to use nice -n20.
--
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I actually wanted to use 'nice -n19 python3.3 -m test.test_os', which also
fails.
Test suite of Python can be run be a package manager, which automatically sets
high niceness.
If niceness is high, then maybe this
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11348
___
___
Charles-Francois Natali neolo...@free.fr added the comment:
If niceness is high, then maybe this test could try to decrease it instead of
increasing.
You must be root or have CAP_SYS_NICE to do that.
--
nosy: +neologix
___
Python tracker