diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 79e6aec2185ea..8ba9cc74e285d 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1931,22 +1931,6 @@ def test_clip_against_frame(self, axis): tm.assert_frame_equal(clipped_df[ub_mask], ub[ub_mask]) tm.assert_frame_equal(clipped_df[mask], df[mask]) - # def test_clip_na(self): - # msg = "Cannot use an NA" - # with tm.assert_raises_regex(ValueError, msg): - # self.frame.clip(lower=np.nan) - - # with tm.assert_raises_regex(ValueError, msg): - # self.frame.clip(lower=[np.nan]) - - # with tm.assert_raises_regex(ValueError, msg): - # self.frame.clip(upper=np.nan) - - # with tm.assert_raises_regex(ValueError, msg): - # self.frame.clip(upper=[np.nan]) - - # with tm.assert_raises_regex(ValueError, msg): - # self.frame.clip(lower=np.nan, upper=np.nan) def test_clip_with_na_args(self): """Should process np.nan argument as None """