Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Workaround macOS test failure

davidmezzettibfd1f13f2b62
diff --git a/test/python/testscoring/testsparse.py b/test/python/testscoring/testsparse.py
index 329429e2..3abbc11d 100644
--- a/test/python/testscoring/testsparse.py
+++ b/test/python/testscoring/testsparse.py
@@ -3,6 +3,7 @@ Sparse module tests
"""
import os
+import platform
import tempfile
import unittest
@@ -86,6 +87,7 @@ class TestSparse(unittest.TestCase):
scoring.upsert((uid, {"text": text}, tags) for uid, text, tags in self.data)
self.assertEqual(scoring.count(), len(self.data))
+ @unittest.skipIf(platform.system() == "Darwin", "Torch memory sharing not supported on macOS")
@patch("torch.cuda.device_count")
def testGPU(self, count):
"""