Skip to content

Commit

Permalink
Using pytest.importorskip("cupy")
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Nov 11, 2019
1 parent 9c0bf1b commit fcc8add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dask_cuda/tests/test_device_host_file.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import numpy as np
import cupy
from dask_cuda.device_host_file import DeviceHostFile, host_to_device, device_to_host
from distributed.protocol import deserialize_bytes, serialize_bytelist
from random import randint
import dask.array as da

import pytest
cupy = pytest.importorskip("cupy")


@pytest.mark.xfail(reason="https://github.com/rapidsai/dask-cuda/pull/171")
Expand Down
2 changes: 1 addition & 1 deletion dask_cuda/tests/test_dgx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import psutil
import os

import cupy
import dask.array as da

from distributed.utils_test import gen_test
Expand All @@ -13,6 +12,7 @@
from dask_cuda.initialize import initialize
from dask_cuda.utils import get_ucx_env

cupy = pytest.importorskip("cupy")

@pytest.mark.skipif(
"ib0" not in psutil.net_if_addrs(), reason="Infiniband interface ib0 not found"
Expand Down

0 comments on commit fcc8add

Please sign in to comment.