From 6adaf2ec05fb4b8f4e983280600ee8b92efc3a1f Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Sat, 4 Jul 2020 08:10:50 +0000 Subject: [PATCH] [vstest]: change time.clock() to time.time() time.clock() is removed from python 3.3 Signed-off-by: Guohan Lu --- tests/test_vrf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_vrf.py b/tests/test_vrf.py index f68d80775be6..f3d11c57756e 100644 --- a/tests/test_vrf.py +++ b/tests/test_vrf.py @@ -175,7 +175,7 @@ def test_VRFMgr_Comprehensive(self, dvs, testlog): ('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen), ] - random.seed(int(time.clock())) + random.seed(int(time.time())) for n in range(2**len(attributes)): # generate testcases for all combinations of attributes @@ -228,7 +228,7 @@ def test_VRFMgr_Update(self, dvs, testlog): ('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen), ] - random.seed(int(time.clock())) + random.seed(int(time.time())) state = self.vrf_create(dvs, "Vrf_a", [