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.py226 cd._set_bool('foo', 'False')
228 cd._set_bool('foo', True)
230 cd._set_bool('foo', 'FALSE')
232 cd._set_bool('foo', 'true')
234 self.assertRaises(ValueError, cd._set_bool, 'foo', '')
235 self.assertRaises(ValueError, cd._set_bool, 'foo', 1)
236 self.assertRaises(ValueError, cd._set_bool, 'foo', [])
237 self.assertRaises(ValueError, cd._set_bool, 'foo', None)
Dcontrol_data.py190 def _set_bool(self, attr, val): member in ControlData
236 self._set_bool('run_verify', val)
281 self._set_bool('require_ssp', val)
299 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
421 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, 1); in dialect_new()
426 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, 0); in dialect_new()
427 DIASET(_set_bool, "strict", &self->strict, strict, 0); in dialect_new()
/external/python/cpython3/Modules/
D_csv.c193 _set_bool(const char *name, int *target, PyObject *src, int dflt) in _set_bool() function
421 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, 1); in dialect_new()
426 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, 0); in dialect_new()
427 DIASET(_set_bool, "strict", &self->strict, strict, 0); in dialect_new()