Home
last modified time | relevance | path

Searched refs:_set_int (Results 1 – 4 of 4) sorted by relevance

/external/autotest/client/common_lib/
Dcontrol_data_unittest.py242 cd._set_int('foo', 0)
244 cd._set_int('foo', '0')
246 cd._set_int('foo', '-1', min=-2, max=10)
248 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
249 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
250 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
251 self.assertRaises(ValueError, cd._set_int, 'foo', '')
252 self.assertRaises(TypeError, cd._set_int, 'foo', None)
Dcontrol_data.py202 def _set_int(self, attr, val, min=None, max=None): member in ControlData
240 self._set_int('sync_count', val, min=1)
268 self._set_int('retries', val)
272 self._set_int('job_retries', val)
293 self._set_int('max_result_size_KB', val)
296 self._set_int('priority', val)
/external/python/cpython2/Modules/
D_csv.c221 _set_int(const char *name, int *target, PyObject *src, int dflt) in _set_int() function
425 DIASET(_set_int, "quoting", &self->quoting, quoting, QUOTE_MINIMAL); in dialect_new()
/external/python/cpython3/Modules/
D_csv.c207 _set_int(const char *name, int *target, PyObject *src, int dflt) in _set_int() function
425 DIASET(_set_int, "quoting", &self->quoting, quoting, QUOTE_MINIMAL); in dialect_new()