diff --git a/g2p/tests/test_tokenize_and_map.py b/g2p/tests/test_tokenize_and_map.py index e46c666d..94169cb6 100755 --- a/g2p/tests/test_tokenize_and_map.py +++ b/g2p/tests/test_tokenize_and_map.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -import warnings from unittest import TestCase, main import g2p @@ -153,16 +152,6 @@ def test_tokenizing_transducer_edge_spaces(self): ] self.assertEqual(tier_edges, ref_tier_edges) - def test_deprecated_tok_langs(self): - if g2p._version.VERSION < "2.0": - with warnings.catch_warnings(record=True) as w: - _ = g2p.make_g2p("fin", "eng-arpabet", "path") - self.assertEqual(len(w), 1) - self.assertTrue(issubclass(w[-1].category, DeprecationWarning)) - else: - with self.assertRaises(TypeError): - _ = g2p.make_g2p("fin", "eng-arpabet", "path") - def test_removed_tok_langs_in_v2(self): # monkey patch to make sure we always exercise the TypeError pathway saved_version = g2p._version.VERSION