mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbustest: Remove pyudev deprecated warnings
This commit is contained in:
parent
ec821d37a8
commit
d18ea3f2cb
@ -1015,7 +1015,7 @@ class TestDbusService(unittest.TestCase):
|
||||
|
||||
block_path = []
|
||||
for d in devices:
|
||||
block_path.append(d['DEVNAME'])
|
||||
block_path.append(d.properties['DEVNAME'])
|
||||
|
||||
self.assertEqual(
|
||||
self.handle_return(
|
||||
@ -1028,7 +1028,7 @@ class TestDbusService(unittest.TestCase):
|
||||
|
||||
mm = []
|
||||
for d in devices:
|
||||
mm.append((int(d['MAJOR']), int(d['MINOR'])))
|
||||
mm.append((int(d.properties['MAJOR']), int(d.properties['MINOR'])))
|
||||
|
||||
self.assertEqual(
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user