diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py index 0161acd8b52cf..6402a08ca54a2 100644 --- a/pandas/tests/frame/test_reductions.py +++ b/pandas/tests/frame/test_reductions.py @@ -93,11 +93,9 @@ def wrapper(x): tm.assert_series_equal( result0, frame.apply(wrapper), check_dtype=check_dtype, rtol=rtol, atol=atol ) - # FIXME: HACK: win32 tm.assert_series_equal( result1, frame.apply(wrapper, axis=1), - check_dtype=False, rtol=rtol, atol=atol, ) @@ -200,9 +198,7 @@ def wrapper(x): result1 = f(axis=1, skipna=False) tm.assert_series_equal(result0, frame.apply(wrapper)) - tm.assert_series_equal( - result1, frame.apply(wrapper, axis=1), check_dtype=False - ) # FIXME: HACK: win32 + tm.assert_series_equal(result1, frame.apply(wrapper, axis=1)) else: skipna_wrapper = alternative wrapper = alternative diff --git a/pandas/tests/indexes/datetimes/test_indexing.py b/pandas/tests/indexes/datetimes/test_indexing.py index 9db6567ca1b56..c6afa3803bcb6 100644 --- a/pandas/tests/indexes/datetimes/test_indexing.py +++ b/pandas/tests/indexes/datetimes/test_indexing.py @@ -651,10 +651,6 @@ def test_get_indexer_mixed_dtypes(self, target): ([date(9999, 1, 1), date(9999, 1, 1)], [-1, -1]), ], ) - # FIXME: these warnings are flaky GH#36131 - @pytest.mark.filterwarnings( - "ignore:Comparison of Timestamp with datetime.date:FutureWarning" - ) def test_get_indexer_out_of_bounds_date(self, target, positions): values = DatetimeIndex([Timestamp("2020-01-01"), Timestamp("2020-01-02")]) diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py index 4c26047d98acc..8a3f8788a45aa 100644 --- a/pandas/tests/io/parser/common/test_chunksize.py +++ b/pandas/tests/io/parser/common/test_chunksize.py @@ -162,7 +162,6 @@ def test_chunk_begins_with_newline_whitespace(all_parsers): @pytest.mark.slow -@pytest.mark.xfail(reason="GH38630, sometimes gives ResourceWarning", strict=False) def test_chunks_have_consistent_numerical_type(all_parsers): parser = all_parsers integers = [str(i) for i in range(499999)] @@ -176,7 +175,7 @@ def test_chunks_have_consistent_numerical_type(all_parsers): assert result.a.dtype == float -def test_warn_if_chunks_have_mismatched_type(all_parsers, request): +def test_warn_if_chunks_have_mismatched_type(all_parsers): warning_type = None parser = all_parsers size = 10000 @@ -193,24 +192,8 @@ def test_warn_if_chunks_have_mismatched_type(all_parsers, request): buf = StringIO(data) - try: - with tm.assert_produces_warning(warning_type): - df = parser.read_csv(buf) - except AssertionError as err: - # 2021-02-21 this occasionally fails on the CI with an unexpected - # ResourceWarning that we have been unable to track down, - # see GH#38630 - if "ResourceWarning" not in str(err) or parser.engine != "python": - raise - - # Check the main assertion of the test before re-raising - assert df.a.dtype == object - - mark = pytest.mark.xfail( - reason="ResourceWarning for unclosed SSL Socket, GH#38630" - ) - request.node.add_marker(mark) - raise + with tm.assert_produces_warning(warning_type): + df = parser.read_csv(buf) assert df.a.dtype == object