Skip to content

Commit d10a0cc

Browse files
committed
Filter again
1 parent 83cd9ae commit d10a0cc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/tests/extension/base/dtype.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ def test_check_dtype(self, data):
6969
expected = pd.Series([True, True, False, False],
7070
index=list('ABCD'))
7171

72-
# XXX: This should probably be *fixed* not ignored.
73-
# See libops.scalar_compare
74-
# warnings.simplefilter("ignore", DeprecationWarning)
75-
result = df.dtypes == str(dtype)
72+
# XXX: This should probably be *fixed* not ignored.
73+
# See libops.scalar_compare
74+
with warnings.catch_warnings():
75+
warnings.simplefilter("ignore", DeprecationWarning)
76+
result = df.dtypes == str(dtype)
77+
7678
self.assert_series_equal(result, expected)
7779

7880
expected = pd.Series([True, True, False, False],

0 commit comments

Comments
 (0)