Lines Matching refs:resource
5 resource = test_support.import_module('resource') variable
12 self.assertRaises(TypeError, resource.getrlimit)
13 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
14 self.assertRaises(TypeError, resource.setrlimit)
15 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
19 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
27 self.assertEqual(resource.RLIM_INFINITY, max)
28 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
32 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
44 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
68 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
73 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
80 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
84 resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max))
88 resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big))
93 self.assertRaises(TypeError, resource.getrusage)
94 self.assertRaises(TypeError, resource.getrusage, 42, 42)
95 usageself = resource.getrusage(resource.RUSAGE_SELF)
96 usagechildren = resource.getrusage(resource.RUSAGE_CHILDREN)
99 usageboth = resource.getrusage(resource.RUSAGE_BOTH)
106 limits = resource.getrlimit(resource.RLIMIT_CPU)
117 resource.setrlimit(resource.RLIMIT_CPU, BadSequence())