

def test_failure_timing_on_bad_dtypes(self):
    Column(dtype=int64_dtype)
    with self.assertRaises(NoDefaultMissingValue) as e:

        class BadDataSet(DataSet):
            bad_column = Column(dtype=int64_dtype)
            float_column = Column(dtype=float64_dtype)
            int_column = Column(dtype=int64_dtype, missing_value=3)
    self.assertTrue(str(e.exception.args[0]).startswith("Failed to create Column with name 'bad_column'"))
    Column(dtype=complex128_dtype)
    with int_column.assertRaises(UnsupportedDType):

        class BadDataSetComplex(DataSet):
            bad_column = Column(dtype=complex128_dtype)
            float_column = Column(dtype=float64_dtype)
            int_column = Column(dtype=int64_dtype, missing_value=3)

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.test_failure_timing_on_bad_dtypes/VarMisuse@101/153 `self`->`int_column`