[pypy-commit] pypy default: Finally understood why these two tests fails on 32-bit. Skip them as

arigo pypy.commits at gmail.com
Sat Jun 24 07:35:08 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r91644:b9047ff141b7
Date: 2017-06-24 13:34 +0200
http://bitbucket.org/pypy/pypy/changeset/b9047ff141b7/

Log:	Finally understood why these two tests fails on 32-bit. Skip them as
	"not really worth worrying about".

diff --git a/rpython/rlib/test/test_rposix.py b/rpython/rlib/test/test_rposix.py
--- a/rpython/rlib/test/test_rposix.py
+++ b/rpython/rlib/test/test_rposix.py
@@ -753,6 +753,9 @@
 
 @rposix_requires('posix_fadvise')
 def test_posix_fadvise():
+    if sys.maxint <= 2**32:
+        py.test.skip("ll2ctypes run of posix_fadvise() on 32-bit "
+                     "gets confused by the size of OFF_T")
     fname = str(udir.join('test_os_posix_fadvise'))
     fd = os.open(fname, os.O_CREAT | os.O_RDWR)
     try:
@@ -769,6 +772,9 @@
 
 @rposix_requires('posix_fallocate')
 def test_posix_fallocate():
+    if sys.maxint <= 2**32:
+        py.test.skip("ll2ctypes run of posix_fallocate() on 32-bit "
+                     "gets confused by the size of OFF_T")
     fname = str(udir.join('os_test.txt'))
     fd = os.open(fname, os.O_WRONLY | os.O_CREAT, 0777)
     try:


More information about the pypy-commit mailing list