tests: fix handling app.pools iteration

This commit is contained in:
Marek Marczykowski-Górecki 2018-07-15 21:31:48 +02:00
parent 2af1815ab7
commit 69e3018b94
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -84,7 +84,7 @@ class ThinPoolBase(qubes.tests.QubesTestCase):
''' Returns the pool matching the specified ``volume_group`` &
``thin_pool``, or None.
'''
pools = [p for p in self.app.pools
pools = [p for p in self.app.pools.values()
if issubclass(p.__class__, ThinPool)]
for pool in pools:
if pool.volume_group == volume_group \