File: test_vendoring.py

package info (click to toggle)
python-array-api-compat 1.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: python: 3,954; sh: 16; makefile: 15
file content (26 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pytest


def test_vendoring_numpy():
    from vendor_test import uses_numpy

    uses_numpy._test_numpy()


def test_vendoring_cupy():
    pytest.importorskip("cupy")

    from vendor_test import uses_cupy

    uses_cupy._test_cupy()


def test_vendoring_torch():
    from vendor_test import uses_torch

    uses_torch._test_torch()


def test_vendoring_dask():
    from vendor_test import uses_dask
    uses_dask._test_dask()