From: Thomas Huth Date: Thu, 13 Nov 2025 12:47:14 +0000 (+0100) Subject: tests/functional/aarch64/test_smmu: Silence warning from pylint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973800eaf280ec4f27ff6d5e10c9554c26b23716;p=thirdparty%2Fqemu.git tests/functional/aarch64/test_smmu: Silence warning from pylint Pylint thinks that the accel variable might be used here without being set first, since it does not know that skipTest() never returns. Thus initialize "accel = None" here to make it happy. Message-Id: <20251119082636.43286-14-thuth@redhat.com> Signed-off-by: Thomas Huth --- diff --git a/tests/functional/aarch64/test_smmu.py b/tests/functional/aarch64/test_smmu.py index e0f4a92217..87b9b14e7a 100755 --- a/tests/functional/aarch64/test_smmu.py +++ b/tests/functional/aarch64/test_smmu.py @@ -50,6 +50,7 @@ class SMMU(LinuxKernelTest): elif kvm_available(self.qemu_bin): accel = "kvm" else: + accel = None # for keeping pylint happy self.skipTest("Neither HVF nor KVM accelerator is available") self.require_accelerator(accel) self.require_netdev('user')