diff options
author | David Robillard <d@drobilla.net> | 2019-10-21 22:54:11 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-21 22:54:11 +0200 |
commit | 0eec91adf53efd5ddf1f770d8965535c0a49b8d4 (patch) | |
tree | 9b0fc4412eafb40e6e17c1bb6d97ff6bd9af1e93 /bindings/test/python | |
parent | b697d5666e7ea0e09245a61455aff49bf7c37bd1 (diff) | |
download | lilv-0eec91adf53efd5ddf1f770d8965535c0a49b8d4.tar.gz lilv-0eec91adf53efd5ddf1f770d8965535c0a49b8d4.tar.bz2 lilv-0eec91adf53efd5ddf1f770d8965535c0a49b8d4.zip |
Don't depend on order in test expectations
Diffstat (limited to 'bindings/test/python')
-rw-r--r-- | bindings/test/python/test_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py index abc1d5e..fd49cc9 100644 --- a/bindings/test/python/test_api.py +++ b/bindings/test/python/test_api.py @@ -260,8 +260,8 @@ class PluginTests(unittest.TestCase): self.assertEqual("input", port.get_symbol()) self.assertEqual("Input", port.get_name()) self.assertEqual( - [self.world.ns.lv2.ControlPort, self.world.ns.lv2.InputPort], - list(port.get_classes()), + [str(self.world.ns.lv2.ControlPort), str(self.world.ns.lv2.InputPort)], + sorted(list(map(str, port.get_classes()))), ) self.assertTrue(port.is_a(self.world.ns.lv2.ControlPort)) self.assertFalse(port.is_a(self.world.ns.lv2.AudioPort)) |