[pypy-commit] pypy get/setpriority: change in test data

nanjekye pypy.commits at gmail.com
Mon Feb 27 06:39:56 EST 2017


Author: Joannah Nanjekye <nanjekyejoannah at gmail.com>
Branch: get/setpriority
Changeset: r90380:2d3af8f1bada
Date: 2016-12-30 17:46 +0300
http://bitbucket.org/pypy/pypy/changeset/2d3af8f1bada/

Log:	change in test data

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
@@ -852,15 +852,15 @@
 
     def test_os_getpriority(self):
         posix, os = self.posix, self.os
-        assert os.getpriority(1,os.getpid()) == posix.getpriority(1,os.getpid())
+        assert os.getpriority(0,os.getpid()) == posix.getpriority(0,os.getpid())
 
     def test_os_setpriority(self):
         posix, os = self.posix, self.os
-        orig_priority = posix.getpriority(1, os.getpid())
-        posix.setpriority(1, os.getpid(), orig_priority + 1)
-        new_result = posix.getpriority(1, os.getpid())
+        orig_priority = posix.getpriority(0, os.getpid())
+        posix.setpriority(0, os.getpid(), orig_priority + 1)
+        new_result = posix.getpriority(0, os.getpid())
         assert new_result == (orig_priority + 1)
-        
+
     def test_write_buffer(self):
         os = self.posix
         fd = os.open(self.path2 + 'test_write_buffer',


More information about the pypy-commit mailing list