

def test_times_coerce_fail(self):
    try:
        typeinference.normalize_column_type(['4:40 AM', '03:45:00', '16:14:45', '1,000,000'], normal_type=datetime.time)
    except InvalidValueForTypeException as e:
        self.assertEqual(e.index, 3)
        self.assertEqual(e.value, '1,000,000')
        self.assertEqual(e.normal_type, datetime.time)
    else:
        raise AssertionError('Expected InvalidValueForTypeException')

dataset/ETHPy150Open wireservice/csvkit/tests/test_typeinference.py TestNormalizeType.test_times_coerce_fail/original