[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-28 Thread R. David Murray
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

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-28 Thread R. David Murray
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

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-28 Thread Giampaolo Rodola'
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 ___

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-27 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-27 Thread Giampaolo Rodola'
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. -- ___

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-27 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-27 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11348 ___ ___

[issue11348] test_os: test_set_get_priority() fails when high niceness is set

2011-02-27 Thread Charles-Francois Natali
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