File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 11import unittest
2- import warnings
32from os import getenv
43from functools import reduce
54import packaging .version as pv
@@ -45,12 +44,7 @@ class TestHypothesisArraysApis(ExtTestCase):
4544
4645 @classmethod
4746 def setUpClass (cls ):
48- try :
49- import array_api_strict as xp
50- except ImportError :
51- with warnings .catch_warnings ():
52- warnings .simplefilter ("ignore" )
53- from numpy import array_api as xp
47+ import array_api_strict as xp
5448
5549 api_version = getenv (
5650 "ARRAY_API_TESTS_VERSION" ,
Original file line number Diff line number Diff line change 11from typing import Any , Optional
2- import warnings
32import numpy as np
43from onnx import TensorProto
5-
6- try :
7- import array_api_strict
8-
9- Array = type (array_api_strict .ones ((1 ,)))
10- except ImportError :
11- with warnings .catch_warnings ():
12- warnings .simplefilter ("ignore" )
13- from numpy .array_api ._array_object import Array
4+ import array_api_strict
145
156from ..npx .npx_types import (
167 DType ,
3627)
3728
3829
30+ Array = type (array_api_strict .ones ((1 ,)))
31+
32+
3933# These functions with no specific code do not have to be
4034# implemented. They are automatically added in
4135# :mod:`onnx_array_api.array_api`. It needs
You can’t perform that action at this time.
0 commit comments