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 a15cd1e commit 2b83cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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_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))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2b83cfb

Please sign in to comment.