resource.setrlimit(resource.RLIMIT_FSIZE, (max, max))
resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
- @unittest.skipIf(sys.platform == "vxworks",
- "setting RLIMIT_FSIZE is not supported on VxWorks")
+ @unittest.skipIf(sys.platform in ("vxworks", "cygwin"),
+ f"setting RLIMIT_FSIZE is not supported on {sys.platform}")
@unittest.skipUnless(hasattr(resource, 'RLIMIT_FSIZE'), 'requires resource.RLIMIT_FSIZE')
def test_fsize_enforced(self):
self.addCleanup(os_helper.unlink, os_helper.TESTFN)
except (OverflowError, ValueError):
pass
- @unittest.skipIf(sys.platform == "vxworks",
- "setting RLIMIT_FSIZE is not supported on VxWorks")
+ @unittest.skipIf(sys.platform in ("vxworks", "cygwin"),
+ f"setting RLIMIT_FSIZE is not supported on {sys.platform}")
@unittest.skipUnless(hasattr(resource, 'RLIMIT_FSIZE'), 'requires resource.RLIMIT_FSIZE')
def test_fsize_not_too_big(self):
(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")
+ @unittest.skipIf(sys.platform in ("vxworks", "cygwin"),
+ f"setting RLIMIT_CPU is not supported on {sys.platform}")
@unittest.skipUnless(hasattr(resource, 'RLIMIT_CPU'), 'requires resource.RLIMIT_CPU')
def test_setrusage_refcount(self):
limits = resource.getrlimit(resource.RLIMIT_CPU)