From 2b83cfbfdb0d85214c2098975803d03c6aa99e9e Mon Sep 17 00:00:00 2001 From: Mathieu Bernard Date: Fri, 24 Nov 2023 13:43:34 +0100 Subject: [PATCH] fixing CI --- test/test_punctuation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_punctuation.py b/test/test_punctuation.py index 8e5ff25..2f5852e 100644 --- a/test/test_punctuation.py +++ b/test/test_punctuation.py @@ -29,7 +29,7 @@ ESPEAK_150 = (EspeakBackend.version() >= (1, 50)) # True if we are using espeak>=1.49.3 -ESPEAK_143 = (EspeakBackend.version() >= (1, 49, 3)) +ESPEAK_148 = (EspeakBackend.version() >= (1, 48, 15)) # True if we are using festival>=2.5 FESTIVAL_25 = (FestivalBackend.version() >= (2, 5)) @@ -70,8 +70,8 @@ def test_preserve(inp): @pytest.mark.parametrize( 'text, expected_restore, expected_output', [ (['hi; ho,"'], ['hi; ho," '], ['haɪ; hoʊ, ']), - (['hi; "ho,'], ['hi; "ho, '], ['haɪ; hoʊ, '] if ESPEAK_143 else ['haɪ; hoʊ, ']), - (['"hi; ho,'], ['"hi; ho, '], ['haɪ; hoʊ, '] if ESPEAK_143 else [' haɪ; hoʊ, '])]) + (['hi; "ho,'], ['hi; "ho, '], ['haɪ; hoʊ, '] if ESPEAK_148 else ['haɪ; hoʊ, ']), + (['"hi; ho,'], ['"hi; ho, '], ['haɪ; hoʊ, '] if ESPEAK_148 else [' haɪ; hoʊ, '])]) def test_preserve_2(text, expected_restore, expected_output): marks = ".!;:,?" punct = Punctuation(marks=marks)