Skip to content

Commit

Permalink
fix hang
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jun 26, 2024
1 parent 52c12c5 commit 6bbd363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions py-polars/tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def memory_usage_without_pyarrow() -> Generator[MemoryUsage, Any, Any]:
if not pl.build_info()["compiler"]["debug"]:
pytest.skip("Memory usage only available in debug/dev builds.")

if os.getenv("POLARS_FORCE_ASYNC", "0") == "1":
pytest.skip("Hangs when combined with async glob")

if sys.platform == "win32":
# abi3 wheels don't have the tracemalloc C APIs, which breaks linking
# on Windows.
Expand Down
4 changes: 0 additions & 4 deletions py-polars/tests/unit/io/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,10 +2057,6 @@ def test_read_csv_only_loads_selected_columns(
monkeypatch: pytest.MonkeyPatch,
) -> None:
"""Only requested columns are loaded by ``read_csv()``."""
# This test hangs on when using FORCE_ASYNC, don't know why. Has something to
# do with the `MemoryUsage` object - it doesn't hang if we don't pass that to
# this function.
monkeypatch.setenv("POLARS_FORCE_ASYNC", "0")
tmp_path.mkdir(exist_ok=True)

# Each column will be about 8MB of RAM
Expand Down

0 comments on commit 6bbd363

Please sign in to comment.