]> git.proxmox.com Git - mirror_qemu.git/commitdiff
avocado_qemu: standardize super() call following PEP3135
authorWillian Rampazzo <willianr@redhat.com>
Mon, 20 Sep 2021 20:49:28 +0000 (17:49 -0300)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 27 Sep 2021 17:06:15 +0000 (19:06 +0200)
PEP3135 states when calling super(), there is no need to use arguments.
This changes the calls on avocado_qemu to standardize according to
PEP3135 and avoid warnings from linters.

Signed-off-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210920204932.94132-3-willianr@redhat.com>

tests/acceptance/avocado_qemu/__init__.py

index d9e1b32aa164f0301862d3af910ecc75d0320a08..d2077d63cda4cfbbe02c5182e1750a637cbce261 100644 (file)
@@ -282,7 +282,7 @@ class Test(avocado.Test):
                     asset_hash=None, algorithm=None,
                     locations=None, expire=None,
                     find_only=False, cancel_on_missing=True):
-        return super(Test, self).fetch_asset(name,
+        return super().fetch_asset(name,
                         asset_hash=asset_hash,
                         algorithm=algorithm,
                         locations=locations,
@@ -470,7 +470,7 @@ class LinuxTest(Test, LinuxSSHMixIn):
             self.distro.checksum = distro_checksum
 
     def setUp(self, ssh_pubkey=None, network_device_type='virtio-net'):
-        super(LinuxTest, self).setUp()
+        super().setUp()
         self._set_distro()
         self.vm.add_args('-smp', '2')
         self.vm.add_args('-m', '1024')