nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/test/test_main.py b/test/test_main.py
2index b8c53e9..8f8c6d2 100644
3--- a/test/test_main.py
4+++ b/test/test_main.py
5@@ -68,16 +68,11 @@ def test_readme():
6 _test('hello world', 'həloʊ wɜːld ', '--verbose')
7 _test('hello world', 'həloʊ wɜːld ', '--quiet')
8 _test('hello world', 'hello world | həloʊ wɜːld ', '--prepend-text')
9- _test('hello world', 'hhaxlow werld', '-b festival --strip')
10 _test('bonjour le monde', 'bɔ̃ʒuʁ lə mɔ̃d ', '-l fr-fr')
11 _test('bonjour le monde', 'b ɔ̃ ʒ u ʁ ;eword l ə ;eword m ɔ̃ d ;eword ',
12 '-l fr-fr -p " " -w ";eword "')
13
14
15-@pytest.mark.skipif(
16- '2.1' in backend.FestivalBackend.version(),
17- reason='festival-2.1 gives different results than further versions '
18- 'for syllable boundaries')
19 def test_readme_festival_syll():
20 _test('hello world',
21 'hh ax ;esyll l ow ;esyll ;eword w er l d ;esyll ;eword ',
22diff --git a/test/test_phonemize.py b/test/test_phonemize.py
23index d156c9e..2bbe371 100644
24--- a/test/test_phonemize.py
25+++ b/test/test_phonemize.py
26@@ -213,18 +213,6 @@ def test_segments(njobs):
27 ('segments', True, True, False,
28 ['achi acho?', '', 'achi acho'],
29 [u'ʌtʃɪ ʌtʃʊ?', '', u'ʌtʃɪ ʌtʃʊ ']),
30- ('festival', False, False, False,
31- ['hello world!', '', 'goodbye'],
32- ['hhaxlow werld ', 'guhdbay ']),
33- ('festival', False, True, False,
34- ['hello world!', '', 'goodbye'],
35- ['hhaxlow werld!', 'guhdbay ']),
36- ('festival', True, False, False,
37- ['hello world!', '', 'goodbye'],
38- ['hhaxlow werld ', '', 'guhdbay ']),
39- ('festival', True, True, False,
40- ['hello world!', '', 'goodbye'],
41- ['hhaxlow werld!', '', 'guhdbay ']),
42 ('espeak', False, False, True,
43 ['hello world!', '', 'goodbye'],
44 [('hello world!', 'həloʊ wɜːld '), ('goodbye', 'ɡʊdbaɪ ')]),
45@@ -248,19 +236,7 @@ def test_segments(njobs):
46 [('achi acho?', u'ʌtʃɪ ʌtʃʊ '), ('', ''), ('achi acho', u'ʌtʃɪ ʌtʃʊ ')]),
47 ('segments', True, True, True,
48 ['achi acho?', '', 'achi acho'],
49- [('achi acho?', u'ʌtʃɪ ʌtʃʊ?'), ('', ''), ('achi acho', u'ʌtʃɪ ʌtʃʊ ')]),
50- ('festival', False, False, True,
51- ['hello world!', '', 'goodbye'],
52- [('hello world!', 'hhaxlow werld '), ('goodbye', 'guhdbay ')]),
53- ('festival', False, True, True,
54- ['hello world!', '', 'goodbye'],
55- [('hello world!', 'hhaxlow werld!'), ('goodbye', 'guhdbay ')]),
56- ('festival', True, False, True,
57- ['hello world!', '', 'goodbye'],
58- [('hello world!', 'hhaxlow werld '), ('', ''), ('goodbye', 'guhdbay ')]),
59- ('festival', True, True, True,
60- ['hello world!', '', 'goodbye'],
61- [('hello world!', 'hhaxlow werld!'), ('', ''), ('goodbye', 'guhdbay ')])])
62+ [('achi acho?', u'ʌtʃɪ ʌtʃʊ?'), ('', ''), ('achi acho', u'ʌtʃɪ ʌtʃʊ ')])])
63 def test_preserve_empty_lines(backend, empty_lines, punctuation, prepend_text, text, expected):
64 language = 'cree' if backend == 'segments' else 'en-us'
65
66@@ -278,11 +254,7 @@ def test_preserve_empty_lines(backend, empty_lines, punctuation, prepend_text, t
67 ('segments', False, False, [''], []),
68 ('segments', False, True, [''], []),
69 ('segments', True, False, [''], ['']),
70- ('segments', True, True, [''], ['']),
71- ('festival', False, False, [''], []),
72- ('festival', False, True, [''], []),
73- ('festival', True, False, [''], ['']),
74- ('festival', True, True, [''], [''])])
75+ ('segments', True, True, [''], [''])])
76 def test_empty_input(backend, empty_lines, punctuation, text, expected):
77 language = 'cree' if backend == 'segments' else 'en-us'
78
79diff --git a/test/test_punctuation.py b/test/test_punctuation.py
80index b2206ac..62e31c1 100644
81--- a/test/test_punctuation.py
82+++ b/test/test_punctuation.py
83@@ -28,9 +28,6 @@ ESPEAK_150 = (EspeakBackend.version() >= (1, 50))
84 # True if we are using espeak>=1.49.3
85 ESPEAK_143 = (EspeakBackend.version() >= (1, 49, 3))
86
87-# True if we are using festival>=2.5
88-FESTIVAL_25 = (FestivalBackend.version() >= (2, 5))
89-
90
91 @pytest.mark.parametrize(
92 'inp, out', [
93@@ -179,9 +176,7 @@ def test_issue_54(text):
94 ('espeak', 'default', ['! ?', 'hey!'], ['! ?', 'heɪ!']),
95 ('espeak', '!', ['! ?', 'hey!'], ['! ', 'heɪ!']),
96 ('segments', 'default', ['! ?', 'hey!'], ['! ?', 'heːj!']),
97- ('segments', '!', ['! ?', 'hey!'], ValueError),
98- ('festival', 'default', ['! ?', 'hey!'], ['! ?', 'hhey!']),
99- ('festival', '!', ['! ?', 'hey!'], ['! ', 'hhey!'])])
100+ ('segments', '!', ['! ?', 'hey!'], ValueError)])
101 def test_issue55(backend, marks, text, expected):
102 if marks == 'default':
103 marks = Punctuation.default_marks()