Don't rely on order in test_clear

This commit is contained in:
Florian Bruhin 2017-10-04 09:02:34 +02:00
parent 38270de120
commit da4402e98c

View File

@ -319,8 +319,8 @@ class TestConfig:
with qtbot.waitSignals([conf.changed, conf.changed]) as blocker:
conf.clear(save_yaml=save_yaml)
options = [e.args[0] for e in blocker.all_signals_and_args]
assert options == [name1, name2]
options = {e.args[0] for e in blocker.all_signals_and_args}
assert options == {name1, name2}
if save_yaml:
assert name1 not in conf._yaml