Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore known but expected test warnings #759

Merged
merged 1 commit into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dask_cuda/tests/test_local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def get_visible_devices():

# Notice, this test might raise errors when the number of available GPUs is less
# than 8 but as long as the test passes the errors can be ignored.
@pytest.mark.filterwarnings("ignore:Cannot get CPU affinity")
@gen_test(timeout=20)
async def test_with_subset_of_cuda_visible_devices():
os.environ["CUDA_VISIBLE_DEVICES"] = "0,3,6,8"
Expand Down Expand Up @@ -96,6 +97,7 @@ async def test_ucx_protocol(protocol):


@pytest.mark.asyncio
@pytest.mark.filterwarnings("ignore:Exception ignored in")
async def test_ucx_protocol_type_error():
pytest.importorskip("ucp")

Expand Down
1 change: 1 addition & 0 deletions dask_cuda/tests/test_worker_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def _check_env_value(spec, k, v):
assert all([i in set(s["options"]["env"][k].split(",")) for s in spec.values()])


@pytest.mark.filterwarnings("ignore:Cannot get CPU affinity")
@pytest.mark.parametrize("num_devices", [1, 4])
@pytest.mark.parametrize("cls", [Nanny])
@pytest.mark.parametrize("interface", [None, "eth0", "enp1s0f0"])
Expand Down