Skip to content

Commit ec46178

Browse files
add suffix for test_python_scalars and add paddle index-url in rqeuirements
1 parent a7163f9 commit ec46178

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ jax[cpu]
44
numpy
55
pytest
66
torch
7-
paddlepaddle
7+
paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
88
sparse >=0.15.1
99
ndonnx

tests/test_array_namespace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_get_namespace():
122122
# Backwards compatible wrapper
123123
assert array_api_compat.get_namespace is array_api_compat.array_namespace
124124

125-
def test_python_scalars():
125+
def test_python_scalars_torch():
126126
a = torch.asarray([1, 2])
127127
xp = import_("torch", wrapper=True)
128128

@@ -138,7 +138,7 @@ def test_python_scalars():
138138
assert array_namespace(a, True) == xp
139139
assert array_namespace(a, None) == xp
140140

141-
def test_python_scalars():
141+
def test_python_scalars_paddle():
142142
a = paddle.to_tensor([1, 2])
143143
xp = import_("paddle", wrapper=True)
144144

0 commit comments

Comments
 (0)