Author: Armin Rigo <[email protected]>
Branch:
Changeset: r88160:7305f377312a
Date: 2016-11-06 19:35 +0100
http://bitbucket.org/pypy/pypy/changeset/7305f377312a/
Log: Fix test_nice to not expect a niceness level of 22 if we start with
19, which is the maximum generally on Posix
diff --git a/pypy/module/posix/test/test_posix2.py
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -1015,7 +1015,8 @@
pid1, status1 = os.waitpid(pid, 0)
assert pid1 == pid
assert os.WIFEXITED(status1)
- assert os.WEXITSTATUS(status1) == myprio + 3
+ expected = min(myprio + 3, 19)
+ assert os.WEXITSTATUS(status1) == expected
if hasattr(os, 'symlink'):
def test_symlink(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit