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.py245 cd._set_int('foo', 0)
247 cd._set_int('foo', '0')
249 cd._set_int('foo', '-1', min=-2, max=10)
251 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
252 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
253 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
254 self.assertRaises(ValueError, cd._set_int, 'foo', '')
255 self.assertRaises(TypeError, cd._set_int, 'foo', None)
Dcontrol_data.py204 def _set_int(self, attr, val, min=None, max=None): member in ControlData
242 self._set_int('sync_count', val, min=1)
270 self._set_int('job_retries', val)
291 self._set_int('max_result_size_KB', val)
294 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
429 DIASET(_set_int, "quoting", &self->quoting, quoting, QUOTE_MINIMAL); in dialect_new()
/external/python/cpython3/Modules/
D_csv.c213 _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()