Home
last modified time | relevance | path

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

/external/autotest/client/common_lib/
Dcontrol_data_unittest.py222 cd._set_bool('foo', 'False')
224 cd._set_bool('foo', True)
226 cd._set_bool('foo', 'FALSE')
228 cd._set_bool('foo', 'true')
230 self.assertRaises(ValueError, cd._set_bool, 'foo', '')
231 self.assertRaises(ValueError, cd._set_bool, 'foo', 1)
232 self.assertRaises(ValueError, cd._set_bool, 'foo', [])
233 self.assertRaises(ValueError, cd._set_bool, 'foo', None)
Dcontrol_data.py189 def _set_bool(self, attr, val): member in ControlData
235 self._set_bool('run_verify', val)
276 self._set_bool('require_ssp', val)
294 self._set_bool('fast', val)
/external/python/cpython2/Modules/
D_csv.c207 _set_bool(const char *name, int *target, PyObject *src, int dflt) in _set_bool() function
425 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, 1); in dialect_new()
430 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, 0); in dialect_new()
431 DIASET(_set_bool, "strict", &self->strict, strict, 0); in dialect_new()
/external/python/cpython3/Modules/
D_csv.c192 _set_bool(const char *name, int *target, PyObject *src, int dflt) in _set_bool() function
414 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, 1); in dialect_new()
419 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, 0); in dialect_new()
420 DIASET(_set_bool, "strict", &self->strict, strict, 0); in dialect_new()