From 98510df7546e03dd0881313d2932e7be278cc001 Mon Sep 17 00:00:00 2001 From: Robert Gildein Date: Mon, 13 May 2024 16:13:31 +0200 Subject: [PATCH] fix linting issue with new flake8 version (#409) Running lint tests on Python 3.12.3 with `flake8==7.0.0` and `pyflakes==3.2.0` was failing. --- tests/unit/steps/test_hypervisor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/steps/test_hypervisor.py b/tests/unit/steps/test_hypervisor.py index 28670e4f..76df230c 100644 --- a/tests/unit/steps/test_hypervisor.py +++ b/tests/unit/steps/test_hypervisor.py @@ -230,7 +230,7 @@ def test_hypervisor_azs_grouping(): ``` """ target = OpenStackRelease("victoria") - machines = {f"{i}": Machine(f"{i}", (), f"az{i//2}") for i in range(6)} + machines = {f"{i}": Machine(f"{i}", (), f"az{i // 2}") for i in range(6)} units = { # app1 "app1/0": Unit("app1/0", machines["0"], ""), @@ -316,7 +316,7 @@ def test_hypervisor_azs_grouping_units_different_o7k_release(): ``` """ target = OpenStackRelease("victoria") - machines = {f"{i}": Machine(f"{i}", (), f"az{i//2}") for i in range(6)} + machines = {f"{i}": Machine(f"{i}", (), f"az{i // 2}") for i in range(6)} units = { # app1 "app1/0": Unit("app1/0", machines["0"], ""),