Skip to content

Commit 2bb46f6

Browse files
committed
python: fix
1 parent f7e8769 commit 2bb46f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/visp/c-api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ VISP_API char const* visp_device_description(backend_device const* d) {
188188

189189
// models
190190

191-
struct any_model {};
191+
struct any_model;
192192

193193
VISP_API int32_t visp_model_detect_family(char const* filepath, int32_t* out_family) {
194194
return handle_errors([&]() {

tests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ target_link_libraries(vision-workbench PRIVATE visioncpp ggml ${VISP_FMT_LINK})
5151
if(VISP_CI)
5252
set(PYTHON_TESTS_ARGS "--ci")
5353
endif()
54-
add_test(NAME python COMMAND uv run pytest -vs tests ${PYTHON_TESTS_ARGS})
54+
add_test(NAME python
55+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
56+
COMMAND uv run pytest -vs tests ${PYTHON_TESTS_ARGS})
5557

5658
#
5759
# Benchmarks

0 commit comments

Comments
 (0)