[pypy-commit] pypy default: fixed issue #2172. the test specified an invalid parameter for memory protection of the mmap call. powerpc rejects that parameter
plan_rich
pypy.commits at gmail.com
Tue May 10 05:53:24 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch:
Changeset: r84349:aa75f1381bfa
Date: 2016-05-10 11:51 +0200
http://bitbucket.org/pypy/pypy/changeset/aa75f1381bfa/
Log: fixed issue #2172. the test specified an invalid parameter for
memory protection of the mmap call. powerpc rejects that parameter
diff --git a/rpython/rlib/test/test_rmmap.py b/rpython/rlib/test/test_rmmap.py
--- a/rpython/rlib/test/test_rmmap.py
+++ b/rpython/rlib/test/test_rmmap.py
@@ -296,7 +296,7 @@
f = open(self.tmpname + "l2", "w+")
f.write("foobar")
f.flush()
- m = mmap.mmap(f.fileno(), 6, prot=~mmap.PROT_WRITE)
+ m = mmap.mmap(f.fileno(), 6, prot=mmap.PROT_READ|mmap.PROT_EXEC)
py.test.raises(RTypeError, m.check_writeable)
py.test.raises(RTypeError, m.check_writeable)
m.close()
More information about the pypy-commit
mailing list