mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31904: Add posix module support for VxWorks (GH-12118)
This commit is contained in:
parent
d12e75734d
commit
f2d7ac7e5b
8 changed files with 83 additions and 14 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue