diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:11:58 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:53:11 +0200 |
| commit | ac0a6d731ad179d62bf2be6be28ee862a020bdab (patch) | |
| tree | 6c90ed884f7038aba574460054aebc5c2c4d6d94 /client | |
| parent | c763fb9760fb7bef5fd1a78af2fe32ff7a2b50da (diff) | |
| download | jasper-client-ac0a6d731ad179d62bf2be6be28ee862a020bdab.tar.gz jasper-client-ac0a6d731ad179d62bf2be6be28ee862a020bdab.zip | |
Fix G2P testcase
Diffstat (limited to 'client')
| -rw-r--r-- | client/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/test.py b/client/test.py index 7ab1761..0a414f4 100644 --- a/client/test.py +++ b/client/test.py @@ -215,8 +215,8 @@ class TestPatchedG2P(TestG2P): "UGLY\t18.9617\t<s> AH G L AY </s>\n", "") def setUp(self): - with patch.object(g2p.PhonetisaurusG2P, 'executable_found', - classmethod(lambda cls: True)): + with patch('g2p.diagnose.check_executable', + return_value=True): with tempfile.NamedTemporaryFile() as f: conf = g2p.PhonetisaurusG2P.get_config().items() with patch.object(g2p.PhonetisaurusG2P, 'get_config', |
