From bc29e5013520bf82b3dbae37c87505d51dcad1b7 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Tue, 1 Feb 2022 18:36:09 -0800 Subject: [PATCH 1/2] TST: Skip pyarrow hanging in MacOS CI --- pandas/tests/io/parser/test_unsupported.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 67f155817582c..609c5e27c9ef1 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -12,7 +12,10 @@ import pytest -from pandas.compat import is_platform_windows +from pandas.compat import ( + is_platform_mac, + is_platform_windows, +) from pandas.errors import ParserError import pandas._testing as tm @@ -174,9 +177,9 @@ def test_close_file_handle_on_invalid_usecols(all_parsers): if parser.engine == "pyarrow": pyarrow = pytest.importorskip("pyarrow") error = pyarrow.lib.ArrowKeyError - if is_platform_windows(): - # GH#45547 causes timeouts on windows builds - pytest.skip("GH#45547 causing timeouts on windows builds 2022-01-22") + if is_platform_windows() or is_platform_mac: + # GH#45547 causes timeouts on windows/mac builds + pytest.skip("GH#45547 causing timeouts on windows/mac builds 2022-01-22") with tm.ensure_clean("test.csv") as fname: Path(fname).write_text("col1,col2\na,b\n1,2") From b1ab6bb27c18a51aab36657f88ee6af5a4c173fc Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Tue, 1 Feb 2022 18:39:28 -0800 Subject: [PATCH 2/2] Call --- pandas/tests/io/parser/test_unsupported.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 609c5e27c9ef1..bc8cb18ab0eaf 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -177,7 +177,7 @@ def test_close_file_handle_on_invalid_usecols(all_parsers): if parser.engine == "pyarrow": pyarrow = pytest.importorskip("pyarrow") error = pyarrow.lib.ArrowKeyError - if is_platform_windows() or is_platform_mac: + if is_platform_windows() or is_platform_mac(): # GH#45547 causes timeouts on windows/mac builds pytest.skip("GH#45547 causing timeouts on windows/mac builds 2022-01-22")