bpo-31904: Add posix module support for VxWorks (GH-12118)

This commit is contained in:
pxinwr 2019-05-21 18:46:37 +08:00 committed by Victor Stinner
parent d12e75734d
commit f2d7ac7e5b
8 changed files with 83 additions and 14 deletions

View file

@ -1407,6 +1407,8 @@ OS_URANDOM_DONT_USE_FD = (
@unittest.skipIf(OS_URANDOM_DONT_USE_FD ,
"os.random() does not use a file descriptor")
@unittest.skipIf(sys.platform == "vxworks",
"VxWorks can't set RLIMIT_NOFILE to 1")
class URandomFDTests(unittest.TestCase):
@unittest.skipUnless(resource, "test requires the resource module")
def test_urandom_failure(self):
@ -1517,7 +1519,8 @@ def _execvpe_mockup(defpath=None):
os.execve = orig_execve
os.defpath = orig_defpath
@unittest.skipUnless(hasattr(os, 'execv'),
"need os.execv()")
class ExecTests(unittest.TestCase):
@unittest.skipIf(USING_LINUXTHREADS,
"avoid triggering a linuxthreads bug: see issue #4970")