def assert_same(self, val1, val2):
        try:
            self.assertEqual(val1, val2)
        except __HOLE__:
            if val1 is pd.NaT:
                self.assertTrue(val2 is pd.NaT)
            elif np.isnan(val1):
                self.assertTrue(np.isnan(val2))
            else:
                raise
dataset/ETHPy150Open quantopian/zipline/tests/test_bar_data.py/WithBarDataChecks.assert_same