From a4c7f2520e6b05a415322704d8f6bb732560dd28 Mon Sep 17 00:00:00 2001 From: Labbeti Date: Thu, 7 Dec 2023 18:09:07 +0100 Subject: [PATCH] Mod: Disable windows only for CET comparison. --- tests/test_all.py | 4 ---- tests/test_compare_cet.py | 5 ++--- tests/test_doc_examples.py | 9 --------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/tests/test_all.py b/tests/test_all.py index 8063e44..5323f4e 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -11,10 +11,6 @@ class TestAll(TestCase): def test_example_1(self) -> None: - # TODO : remove old check - # if platform.system() == "Windows": - # return None - cands: list[str] = ["a man is speaking", "rain falls"] mrefs: list[list[str]] = [ [ diff --git a/tests/test_compare_cet.py b/tests/test_compare_cet.py index 1b1aad7..7c838e6 100644 --- a/tests/test_compare_cet.py +++ b/tests/test_compare_cet.py @@ -118,9 +118,8 @@ def _get_example_0(self) -> tuple[list[str], list[list[str]]]: return cands, mrefs def _test_with_example(self, cands: list[str], mrefs: list[list[str]]) -> None: - # TODO : remove old check - # if platform.system() == "Windows": - # return None + if platform.system() == "Windows": + return None corpus_scores, _ = evaluate(cands, mrefs, metrics="dcase2020", preprocess=True) diff --git a/tests/test_doc_examples.py b/tests/test_doc_examples.py index f620265..eb4ee0f 100644 --- a/tests/test_doc_examples.py +++ b/tests/test_doc_examples.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import platform import unittest from unittest import TestCase @@ -18,10 +17,6 @@ class TestReadmeExamples(TestCase): def test_example_1(self) -> None: - # TODO : remove old check - # if platform.system() == "Windows": - # return None - candidates: list[str] = ["a man is speaking", "rain falls"] mult_references: list[list[str]] = [ [ @@ -59,10 +54,6 @@ def test_example_1(self) -> None: ) def test_example_2(self) -> None: - # TODO : remove old check - # if platform.system() == "Windows": - # return None - candidates: list[str] = ["a man is speaking", "rain falls"] mult_references: list[list[str]] = [ [