Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix WindowsPath not serializable in memory tests (#37130)

Egor Tyuvaev957bd079b40f
diff --git a/tests/memory_tests/tools/run_tests.py b/tests/memory_tests/tools/run_tests.py
index 572b1dcc1ba..71a3ee8c92b 100644
--- a/tests/memory_tests/tools/run_tests.py
+++ b/tests/memory_tests/tools/run_tests.py
@@ -275,7 +275,7 @@ class TestSession:
sample_report.update({
"test_name": f"{result.get('test', self.test_name)}:{sname}",
"status": "failed" if "error" in result else "passed",
- "source": test.model_path,
+ "source": str(test.model_path),
"log": result.get("stderr", ""),
"model_name": modelname,
"model": test.model_id,