From 7b8b4652693a87233c9aea313959a9cede3df0f4 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 15 Aug 2023 19:05:26 -0400 Subject: tests docs: update python3 venv packages - Package update performed by 1. updating pip, pip-tools, setuptools 2. 'make test-refresh-deps' on ubuntu 22.04 3. fixing 'make test' and 'make docs' issues on ubuntu 22.04 4. 'make test-refresh-deps' on ubuntu 20.04 - Add dependency for 'make test-refresh-deps' to insure python venv is set up. - Update of python formatter, black, caused reformating of 41 python code files. Type: make Change-Id: I7cafdf4b5189065ac57cb6b254937f6e0897a924 Signed-off-by: Dave Wallace --- test/asf/asfframework.py | 3 +-- test/asf/test_lb_api.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'test/asf') diff --git a/test/asf/asfframework.py b/test/asf/asfframework.py index d613ff2576e..37aa2633bae 100644 --- a/test/asf/asfframework.py +++ b/test/asf/asfframework.py @@ -924,7 +924,7 @@ class VppTestCase(CPUInterface, unittest.TestCase): @classmethod def pg_start(cls, trace=True): """Enable the PG, wait till it is done, then clean up""" - for (intf, worker) in cls._old_pcaps: + for intf, worker in cls._old_pcaps: intf.handle_old_pcap_file(intf.get_in_path(worker), intf.in_history_counter) cls._old_pcaps = [] if trace: @@ -1204,7 +1204,6 @@ class VppTestCase(CPUInterface, unittest.TestCase): @classmethod def sleep(cls, timeout, remark=None): - # /* Allow sleep(0) to maintain win32 semantics, and as decreed # * by Guido, only the main thread can be interrupted. # */ diff --git a/test/asf/test_lb_api.py b/test/asf/test_lb_api.py index 53c1db54094..b1e04a93ec3 100644 --- a/test/asf/test_lb_api.py +++ b/test/asf/test_lb_api.py @@ -22,7 +22,6 @@ class TestLbEmptyApi(asfframework.VppTestCase): """TestLbEmptyApi""" def test_lb_empty_vip_dump(self): - # no records should normally return [], but # lb initializes with a default VIP rv = self.vapi.lb_vip_dump() @@ -30,7 +29,6 @@ class TestLbEmptyApi(asfframework.VppTestCase): self.assertEqual(rv, [], "Expected: [] Received: %r." % rv) def test_lb_empty_as_dump(self): - # no records should return [] rv = self.vapi.lb_as_dump() # print(rv) -- cgit 1.2.3-korg