summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2019-05-21 10:46:37 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-05-21 10:46:37 (GMT)
commitf2d7ac7e5bd821e29e0fcb78a760a282059ae000 (patch)
tree096d1f8f9ccb49a93741ecbd15e35b6775282a48 /Lib/test/test_os.py
parentd12e75734d46ecde588c5de65e6d64146911d20c (diff)
downloadcpython-f2d7ac7e5bd821e29e0fcb78a760a282059ae000.zip
cpython-f2d7ac7e5bd821e29e0fcb78a760a282059ae000.tar.gz
cpython-f2d7ac7e5bd821e29e0fcb78a760a282059ae000.tar.bz2
bpo-31904: Add posix module support for VxWorks (GH-12118)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index a2021b1..353b9a5 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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")