def METHOD_NAME(self):
    requires_numpy_and_pandas()
    if not hasattr(pd, "NaT"):
        raise SkipTest("pandas.NaT required")
    self.assertRaises(SerializationError, JSONSerializer().dumps, {"d": pd.NaT})