``setrlimit`` may also raise :exc:`error` if the underlying system call
fails.
+ VxWorks only supports setting :data:`RLIMIT_NOFILE`.
+
.. function:: prlimit(pid, resource[, limits])
Combines :func:`setrlimit` and :func:`getrlimit` in one function and
self.assertRaises(TypeError, resource.setrlimit)
self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
+ @unittest.skipIf(sys.platform == "vxworks",
+ "setting RLIMIT_FSIZE is not supported on VxWorks")
def test_fsize_ismax(self):
try:
(cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
pass
# Issue 6083: Reference counting bug
+ @unittest.skipIf(sys.platform == "vxworks",
+ "setting RLIMIT_CPU is not supported on VxWorks")
def test_setrusage_refcount(self):
try:
limits = resource.getrlimit(resource.RLIMIT_CPU)