Skip to content

Commit

Permalink
fix: fix test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed May 10, 2024
1 parent 945a3b7 commit 099f07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,5 @@ filterwarnings = [
'ignore:jax\.numpy\.DeviceArray is deprecated\. Use jax\.Array\.:DeprecationWarning',
'ignore:.*functorch.*deprecate.*:UserWarning',
'ignore:.*Apple Paravirtual device.*:UserWarning',
'ignore:.*NVML.*:UserWarning',
]
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def parametrize(**argvalues) -> pytest.mark.parametrize:
argvalues = list(itertools.product(*tuple(map(argvalues.get, arguments))))

ids = tuple(
'-'.join(f'{arg}({val})' for arg, val in zip(arguments, values)) for values in argvalues
'-'.join(f'{arg}({val!r})' for arg, val in zip(arguments, values)) for values in argvalues
)

return pytest.mark.parametrize(arguments, argvalues, ids=ids)
Expand Down

0 comments on commit 099f07b

Please sign in to comment.