···1+# HG changeset patch
2+# User Armin Rigo <arigo@tunes.org>
3+# Date 1500108588 -7200
4+# Node ID 20f7723ff895430c2f45647e7d0c0ca56d93e40a
5+# Parent d135217574a6bd2e87a883e1d495f82c5e89bc8b
6+(ronan, arigo)
7+8+Issue #2604: skip this test (fails on some Linux because pypy uses the
9+new getrandom() syscall)
10+11+diff --git a/lib-python/2.7/test/test_os.py b/lib-python/2.7/test/test_os.py
12+--- a/lib-python/2.7/test/test_os.py
13++++ b/lib-python/2.7/test/test_os.py
14+@@ -580,6 +580,7 @@
15+ "getentropy() does not use a file descriptor")
16+ class URandomFDTests(unittest.TestCase):
17+ @unittest.skipUnless(resource, "test requires the resource module")
18++ @test_support.impl_detail(pypy=False) # on Linux, may use getrandom()
19+ def test_urandom_failure(self):
20+ # Check urandom() failing when it is not able to open /dev/random.
21+ # We spawn a new process to make the test more robust (if getrlimit()