Skip to content

Commit b05853e

Browse files
committed
no message
1 parent 000d01b commit b05853e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
import pytest
44
import cv2
5+
from pathlib import Path
56

67

78
def pytest_generate_tests(metafunc):
@@ -72,7 +73,7 @@ def bsp_test_image(board, example, expectation):
7273
@pytest.fixture(autouse=True)
7374
def bsp_test(request):
7475
board = request.node.callspec.id
75-
path = request.node.fspath
76+
path = Path(str(request.node.fspath))
7677
test_name = path.parent.name
7778
yield
7879
print(f"Capturing image for: {board}")

0 commit comments

Comments
 (0)