Skip to content

Commit

Permalink
Mod: Disable windows only for CET comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Dec 7, 2023
1 parent 7a4ed30 commit a4c7f25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = [
[
Expand Down
5 changes: 2 additions & 3 deletions tests/test_compare_cet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
9 changes: 0 additions & 9 deletions tests/test_doc_examples.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import platform
import unittest

from unittest import TestCase
Expand All @@ -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]] = [
[
Expand Down Expand Up @@ -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]] = [
[
Expand Down

0 comments on commit a4c7f25

Please sign in to comment.