diff options
author | David Robillard <d@drobilla.net> | 2019-10-19 19:51:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-19 19:54:13 +0200 |
commit | 9e10cf64bde54a623c0715e644683382a70b681e (patch) | |
tree | e3e581b4d9cca5ca8ca1ab6acb3bd541eec9b4d4 /bindings/test/python | |
parent | 8ac46250fc5dfe2cbded8691ee26a2f13087b8d2 (diff) | |
download | lilv-9e10cf64bde54a623c0715e644683382a70b681e.tar.gz lilv-9e10cf64bde54a623c0715e644683382a70b681e.tar.bz2 lilv-9e10cf64bde54a623c0715e644683382a70b681e.zip |
Fix various issues with Python bindings
Diffstat (limited to 'bindings/test/python')
-rw-r--r-- | bindings/test/python/test_api.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py index f594013..d1f25d1 100644 --- a/bindings/test/python/test_api.py +++ b/bindings/test/python/test_api.py @@ -110,8 +110,6 @@ class LoadTests(unittest.TestCase): self.bundle_uri = self.world.new_uri(location) self.world.load_specifications() self.world.load_plugin_classes() - def tearDown(self): - del self.world def testLoadUnload(self): self.world.load_bundle(self.bundle_uri) plugins = self.world.get_all_plugins() @@ -203,8 +201,8 @@ class PluginTests(unittest.TestCase): list(port.get_classes())) self.assertTrue(port.is_a(self.world.ns.lv2.ControlPort)) self.assertFalse(port.is_a(self.world.ns.lv2.AudioPort)) - self.assertEquals((0.5, 0.0, 1.0), port.get_range()) - self.assertEquals(0, len(port.get_properties())) + self.assertEqual((0.5, 0.0, 1.0), port.get_range()) + self.assertEqual(0, len(port.get_properties())) def testScalePoints(self): port = self.plugin.get_port("input") points = port.get_scale_points() |