72@@ -73,7 +73,7 @@ def wallet_file(name):
73 wallet_names.remove('w7_symlink')
74 extra_args = ['-wallet={}'.format(n) for n in wallet_names]
75 self.start_node(0, extra_args)
76- assert_equal(set(map(lambda w: w['name'], self.nodes[0].listwalletdir()['wallets'])), set(['', 'w3', 'w2', 'sub/w5', 'w7', 'w7', 'w1', 'w8', 'w']))
77+ assert_equal(sorted(map(lambda w: w['name'], self.nodes[0].listwalletdir()['wallets'])), ['', 'sub/w5', 'w', 'w1', 'w2', 'w3', 'w7', 'w7_symlink', 'w8'])
Note to reviewers, I’ve removed the set()
because it removes duplicate and that’s not the point — w7
was duplicate — sorted()
is what’s needed.