Skip to content

Commit 8317268

Browse files
pb8oroypat
authored andcommitted
tests: fix new pylint issues
New version of Pylint complains about a few `possibly-used-before-assignment`. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 6cd6af4 commit 8317268

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/integration_tests/functional/test_cpu_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ def test_cpu_template(uvm_plain_any, cpu_template, microvm_factory):
686686
def check_masked_features(test_microvm, cpu_template):
687687
"""Verify the masked features of the given template."""
688688
# fmt: off
689+
must_be_unset = []
689690
if cpu_template == "C3":
690691
must_be_unset = [
691692
(0x1, 0x0, "ecx",

tests/integration_tests/functional/test_topology.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def _check_cache_topology_x86(
4343
)
4444

4545
cpu_vendor = utils.get_cpu_vendor()
46+
expected_level_1_topology = expected_level_3_topology = None
4647
if cpu_vendor == utils.CpuVendor.AMD:
4748
key_share = "extra cores sharing this cache"
4849
expected_level_1_topology = {

tests/integration_tests/performance/test_rate_limiter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ def _process_iperf_line(line):
440440
def _process_iperf_output(iperf_out):
441441
"""Parse iperf3 output and return average test time and bandwidth."""
442442
iperf_out_lines = iperf_out.splitlines()
443+
send_time = send_bw = rcv_time = rcv_bw = None
443444
for line in iperf_out_lines:
444445
if line.find("sender") != -1:
445446
send_time, send_bw = _process_iperf_line(line)

0 commit comments

Comments
 (0)