Skip to content

Commit b7184d9

Browse files
CI/TST: add is_ci_environment to test_close_file_handle_on_invalid_usecols skip (#45872)
1 parent 56aca32 commit b7184d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/io/parser/test_unsupported.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import pytest
1414

1515
from pandas.compat import (
16+
is_ci_environment,
1617
is_platform_mac,
1718
is_platform_windows,
1819
)
@@ -177,7 +178,7 @@ def test_close_file_handle_on_invalid_usecols(all_parsers):
177178
if parser.engine == "pyarrow":
178179
pyarrow = pytest.importorskip("pyarrow")
179180
error = pyarrow.lib.ArrowKeyError
180-
if is_platform_windows() or is_platform_mac():
181+
if is_ci_environment() and (is_platform_windows() or is_platform_mac()):
181182
# GH#45547 causes timeouts on windows/mac builds
182183
pytest.skip("GH#45547 causing timeouts on windows/mac builds 2022-01-22")
183184

0 commit comments

Comments
 (0)