From ac0a6d731ad179d62bf2be6be28ee862a020bdab Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 8 Oct 2014 20:11:58 +0200 Subject: Fix G2P testcase --- client/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') 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 AH G L AY \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', -- cgit v1.3.1