Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Skip test for macOS

davidmezzettib68d8736c4ca
diff --git a/test/python/testpipeline/testtranslation.py b/test/python/testpipeline/testtranslation.py
index f301e8e7..d76857e2 100644
--- a/test/python/testpipeline/testtranslation.py
+++ b/test/python/testpipeline/testtranslation.py
@@ -3,6 +3,7 @@ Translation module tests
"""
import os
+import platform
import unittest
from txtai.pipeline import Translation
@@ -26,7 +27,7 @@ class TestTranslation(unittest.TestCase):
# Validate translation text
self.assertIsNotNone(translation)
- @unittest.skipIf(os.name == "nt", "M2M100 skipped on Windows")
+ @unittest.skipIf(os.name == "nt" or platform.system() == "Darwin", "M2M100 skipped on Windows and macOS")
def testM2M100Translation(self):
"""
Tests a translation using M2M100 models