mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 06:42:25 +01:00
Fix NotQuery assertion by using sets, not lists
* Fix issue with an assertion that was order-sensitive and caused a problem on some tox runs.
This commit is contained in:
parent
e457479558
commit
e69b3b3c5d
1 changed files with 2 additions and 2 deletions
|
|
@ -807,8 +807,8 @@ class NotQueryTest(DummyDataTestCase):
|
|||
|
||||
# round trip
|
||||
not_not_q = dbcore.query.NotQuery(not_q)
|
||||
self.assertEqual([i.title for i in self.lib.items(q)],
|
||||
[i.title for i in self.lib.items(not_not_q)])
|
||||
self.assertEqual(set([i.title for i in self.lib.items(q)]),
|
||||
set([i.title for i in self.lib.items(not_not_q)]))
|
||||
|
||||
def test_type_and(self):
|
||||
# not(a and b) <-> not(a) or not(b)
|
||||
|
|
|
|||
Loading…
Reference in a new issue