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.py238 cd._set_int('foo', 0)
240 cd._set_int('foo', '0')
242 cd._set_int('foo', '-1', min=-2, max=10)
244 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
245 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
246 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
247 self.assertRaises(ValueError, cd._set_int, 'foo', '')
248 self.assertRaises(TypeError, cd._set_int, 'foo', None)
Dcontrol_data.py201 def _set_int(self, attr, val, min=None, max=None): member in ControlData
239 self._set_int('sync_count', val, min=1)
267 self._set_int('job_retries', val)
288 self._set_int('max_result_size_KB', val)
291 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.c206 _set_int(const char *name, int *target, PyObject *src, int dflt) in _set_int() function
418 DIASET(_set_int, "quoting", &self->quoting, quoting, QUOTE_MINIMAL); in dialect_new()