mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
tests: fix test-networkmanager-service.py for Python 3 incompatibility
https://bugzilla.gnome.org/show_bug.cgi?id=763544
This commit is contained in:
parent
4a00bcf5a6
commit
226ef19109
|
@ -1082,7 +1082,7 @@ class Settings(dbus.service.Object):
|
|||
con = Connection(self.bus, path, settings, self.delete_connection, verify_connection)
|
||||
|
||||
uuid = con.get_uuid()
|
||||
if uuid in [c.get_uuid() for c in self.connections.itervalues()]:
|
||||
if uuid in [c.get_uuid() for c in self.connections.values()]:
|
||||
raise InvalidSettingException('cannot add duplicate connection with uuid %s' % (uuid))
|
||||
|
||||
self.counter = self.counter + 1
|
||||
|
|
Loading…
Reference in a new issue