···11+# HG changeset patch
22+# User Armin Rigo <arigo@tunes.org>
33+# Date 1500108588 -7200
44+# Node ID 20f7723ff895430c2f45647e7d0c0ca56d93e40a
55+# Parent d135217574a6bd2e87a883e1d495f82c5e89bc8b
66+(ronan, arigo)
77+88+Issue #2604: skip this test (fails on some Linux because pypy uses the
99+new getrandom() syscall)
1010+1111+diff --git a/lib-python/2.7/test/test_os.py b/lib-python/2.7/test/test_os.py
1212+--- a/lib-python/2.7/test/test_os.py
1313++++ b/lib-python/2.7/test/test_os.py
1414+@@ -580,6 +580,7 @@
1515+ "getentropy() does not use a file descriptor")
1616+ class URandomFDTests(unittest.TestCase):
1717+ @unittest.skipUnless(resource, "test requires the resource module")
1818++ @test_support.impl_detail(pypy=False) # on Linux, may use getrandom()
1919+ def test_urandom_failure(self):
2020+ # Check urandom() failing when it is not able to open /dev/random.
2121+ # We spawn a new process to make the test more robust (if getrlimit()