Skip to content

Commit

Permalink
fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmaat committed Nov 24, 2023
1 parent 2b83cfb commit 0266153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_punctuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ESPEAK_150 = (EspeakBackend.version() >= (1, 50))

# True if we are using espeak>=1.49.3
ESPEAK_148 = (EspeakBackend.version() >= (1, 48, 15))
ESPEAK_149 = (EspeakBackend.version() >= (1, 49, 3))

# True if we are using festival>=2.5
FESTIVAL_25 = (FestivalBackend.version() >= (2, 5))
Expand Down Expand Up @@ -69,9 +69,9 @@ 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_148 else ['haɪ; hoʊ, ']),
(['"hi; ho,'], ['"hi; ho, '], ['haɪ; hoʊ, '] if ESPEAK_148 else [' haɪ; hoʊ, '])])
(['hi; hi,"'], ['hi; hi," '], ['haɪ; haɪ, ']),
(['hi; "hi,'], ['hi; "hi, '], ['haɪ; haɪ, '] if ESPEAK_149 else ['haɪ; haɪ, ']),
(['"hi; hi,'], ['"hi; hi, '], ['haɪ; haɪ, '] if ESPEAK_149 else [' haɪ; haɪ, '])])
def test_preserve_2(text, expected_restore, expected_output):
marks = ".!;:,?"
punct = Punctuation(marks=marks)
Expand Down

0 comments on commit 0266153

Please sign in to comment.