[pypy-commit] pypy py3.5: hg merge default

arigo pypy.commits at gmail.com
Sun Feb 19 10:42:25 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r90204:13731a1c2af6
Date: 2017-02-19 16:41 +0100
http://bitbucket.org/pypy/pypy/changeset/13731a1c2af6/

Log:	hg merge default

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -621,7 +621,7 @@
     except OSError as e:
         raise wrap_oserror2(space, e, w_path, eintr_retry=False)
     else:
-        return space.newint(ok)
+        return space.newbool(ok)
 
 
 def times(space):
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
@@ -362,11 +362,11 @@
         pdir = self.pdir + '/file1'
         posix = self.posix
 
-        assert posix.access(pdir, posix.R_OK)
-        assert posix.access(pdir, posix.W_OK)
+        assert posix.access(pdir, posix.R_OK) is True
+        assert posix.access(pdir, posix.W_OK) is True
         import sys
         if sys.platform != "win32":
-            assert not posix.access(pdir, posix.X_OK)
+            assert posix.access(pdir, posix.X_OK) is False
 
     def test_times(self):
         """


More information about the pypy-commit mailing list