diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-04 17:42:58 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-10 10:51:59 +0100 |
commit | e59e9c96a7d6f443b09ac941dce18bee55c14883 (patch) | |
tree | 198a32aa2f63515d70cc77696ce84f503454683e | |
parent | fd9e17a958f631df795b4709ed3303286fd2054f (diff) | |
download | pygobject-e59e9c96a7d6f443b09ac941dce18bee55c14883.tar.gz |
tests_gio: Don't depend on the order of keys returned by Gio.Settings.list_keys()
The order is different with glib master and makes the test fail. My guess is that
this is due to the recent hash table changes in glib.
Convert things to a set before comparing.
-rw-r--r-- | tests/test_gio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index b5fcdf3c..f3111ea3 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -67,9 +67,9 @@ class TestGSettings(unittest.TestCase): self.settings.reset('test-enum') def test_iter(self): - assert list(self.settings) == [ + assert set(list(self.settings)) == set([ 'test-tuple', 'test-array', 'test-boolean', 'test-string', - 'test-enum', 'test-range'] + 'test-enum', 'test-range']) def test_get_set(self): for key in self.settings: |