Skip to content

Commit 69888d7

Browse files
authored
Merge pull request #28 from Quansight-Labs/test_function_base
vendor numpy/lib/tests/test_function_base.py
2 parents eaf81e2 + a412ae4 commit 69888d7

File tree

4 files changed

+3991
-1
lines changed

4 files changed

+3991
-1
lines changed

.github/workflows/basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
conda config --add channels conda-forge
4242
conda config --set channel_priority strict
4343
conda info
44-
conda install python==3.9 pytorch==1.13.0 pytest numpy -y
44+
conda install python==3.9 pytorch==1.13.0 pytest numpy hypothesis -y
4545
conda list
4646
conda config --show-sources
4747
# conda config --show

torch_np/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
nan = float("nan")
1515

1616

17+
alltrue = all
18+
1719
#### HACK HACK HACK ####
1820
import torch
1921

torch_np/testing/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
assert_,
44
assert_allclose,
55
assert_almost_equal,
6+
assert_array_almost_equal,
67
assert_array_equal,
78
assert_equal,
9+
assert_raises_regex,
810
assert_warns,
11+
suppress_warnings,
912
)
1013

1114
# from .testing import assert_allclose # FIXME

0 commit comments

Comments
 (0)