summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-11-04 17:42:58 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-11-10 10:51:59 +0100
commite59e9c96a7d6f443b09ac941dce18bee55c14883 (patch)
tree198a32aa2f63515d70cc77696ce84f503454683e
parentfd9e17a958f631df795b4709ed3303286fd2054f (diff)
downloadpygobject-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.py4
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: