def test_parser(self):
        # pr #11245
        for tz, constructor in product(('UTC', 'US/Eastern'),
                                       ('M8', 'datetime64')):
            self.assertEqual(
                DatetimeTZDtype('%s[ns, %s]' % (constructor, tz)),
                DatetimeTZDtype('ns', tz),
            )
dataset/ETHPy150Open pydata/pandas/pandas/tests/types/test_dtypes.py/TestDatetimeTZDtype.test_parser/original