Skip to content

Commit

Permalink
add suffix for test_python_scalars and add paddle index-url in rqeuir…
Browse files Browse the repository at this point in the history
…ements
  • Loading branch information
HydrogenSulfate committed Nov 26, 2024
1 parent a7163f9 commit ec46178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ jax[cpu]
numpy
pytest
torch
paddlepaddle
paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
sparse >=0.15.1
ndonnx
4 changes: 2 additions & 2 deletions tests/test_array_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_get_namespace():
# Backwards compatible wrapper
assert array_api_compat.get_namespace is array_api_compat.array_namespace

def test_python_scalars():
def test_python_scalars_torch():
a = torch.asarray([1, 2])
xp = import_("torch", wrapper=True)

Expand All @@ -138,7 +138,7 @@ def test_python_scalars():
assert array_namespace(a, True) == xp
assert array_namespace(a, None) == xp

def test_python_scalars():
def test_python_scalars_paddle():
a = paddle.to_tensor([1, 2])
xp = import_("paddle", wrapper=True)

Expand Down

0 comments on commit ec46178

Please sign in to comment.