Skip to content

Commit

Permalink
Ignore known but expected test warnings (#759)
Browse files Browse the repository at this point in the history
Some warnings get raised during tests, they are known, expected and harmless, so it's safe to filter them out.

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - https://github.com/jakirkham

URL: #759
  • Loading branch information
pentschev authored Oct 22, 2021
1 parent 36a0251 commit 0478adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 0478adf

Please sign in to comment.