bpo-31904: Port test_resource to VxWorks (GH-12719) · python/cpython@693c104 (original) (raw)

`@@ -16,6 +16,8 @@ def test_args(self):

`

16

16

`self.assertRaises(TypeError, resource.setrlimit)

`

17

17

`self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)

`

18

18

``

``

19

`+

@unittest.skipIf(sys.platform == "vxworks",

`

``

20

`+

"setting RLIMIT_FSIZE is not supported on VxWorks")

`

19

21

`def test_fsize_ismax(self):

`

20

22

`try:

`

21

23

` (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)

`

`@@ -110,6 +112,8 @@ def test_getrusage(self):

`

110

112

`pass

`

111

113

``

112

114

`# Issue 6083: Reference counting bug

`

``

115

`+

@unittest.skipIf(sys.platform == "vxworks",

`

``

116

`+

"setting RLIMIT_CPU is not supported on VxWorks")

`

113

117

`def test_setrusage_refcount(self):

`

114

118

`try:

`

115

119

`limits = resource.getrlimit(resource.RLIMIT_CPU)

`