From 41fdc85d4229fdcfc2eb2bf4c1f03e51b7cd594c Mon Sep 17 00:00:00 2001 From: Ivan Menshikh Date: Sun, 24 Oct 2021 12:46:56 +0500 Subject: [PATCH] skip blinking test on OSX + py3.9 --- gensim/test/test_translation_matrix.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gensim/test/test_translation_matrix.py b/gensim/test/test_translation_matrix.py index b21fdc6063..bd98ca10d9 100644 --- a/gensim/test/test_translation_matrix.py +++ b/gensim/test/test_translation_matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # encoding: utf-8 +import sys from collections import namedtuple import unittest import logging @@ -60,6 +61,10 @@ def test_translate_nn(self): for idx, item in enumerate(self.test_word_pairs): self.assertTrue(item[1] in translated_words[item[0]]) + @unittest.skipIf( + (sys.version_info.major == 3) and (sys.version_info.minor == 9) and (sys.platform == 'darwin'), + 'blinking test, can be related to ' + ) def test_translate_gc(self): # Test globally corrected neighbour retrieval method model = translation_matrix.TranslationMatrix(self.source_word_vec, self.target_word_vec, self.word_pairs)