yurivict opened a new issue, #805:
URL: https://github.com/apache/tvm-ffi/issues/805
```
=================================================================================
FAILURES
==================================================================================
______________________________________________________
test_basic_path_flags[--cython-lib-path-find_cython_lib-False]
_______________________________________________________
flag = '--cython-lib-path', expected_fn = <function find_cython_lib at
0x10be7b9498a0>, is_dir = False
@pytest.mark.parametrize(
("flag", "expected_fn", "is_dir"),
[
("--includedir", libinfo.find_include_path, True),
("--dlpack-includedir", libinfo.find_dlpack_include_path, True),
("--cmakedir", libinfo.find_cmake_path, True),
("--sourcedir", libinfo.find_source_path, True),
("--cython-lib-path", libinfo.find_cython_lib, False),
],
)
def test_basic_path_flags(flag: str, expected_fn: Callable[[], str],
is_dir: bool) -> None:
> output = _stdout_for(flag)
^^^^^^^^^^^^^^^^^
tests/python/test_libinfo.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _
args = ('--cython-lib-path',)
def _stdout_for(*args: str) -> str:
"""Invoke tvm-ffi-config with the provided arguments and return
stdout with trailing whitespace removed."""
result = subprocess.run(
[
sys.executable,
"-m",
"tvm_ffi.config",
*args,
],
check=True,
capture_output=True,
text=True,
)
> assert result.stderr == ""
E AssertionError: assert '/usr/local/l...ore[import]\n' == ''
E
E +
/usr/local/lib/python3.12/site-packages/torch/cuda/__init__.py:68:
FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py
instead. If you did not install pynvml directly, please report this to the
maintainers of the package that installed pynvml for you.
E + import pynvml # type: ignore[import]
tests/python/test_libinfo.py:41: AssertionError
```
Version: 0.1.14
FreeBSD 15.1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]