Skip to content

Commit 6adaf2e

Browse files
committed
[vstest]: change time.clock() to time.time()
time.clock() is removed from python 3.3 Signed-off-by: Guohan Lu <lguohan@gmail.com>
1 parent 9c71203 commit 6adaf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_vrf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_VRFMgr_Comprehensive(self, dvs, testlog):
175175
('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen),
176176
]
177177

178-
random.seed(int(time.clock()))
178+
random.seed(int(time.time()))
179179

180180
for n in range(2**len(attributes)):
181181
# generate testcases for all combinations of attributes
@@ -228,7 +228,7 @@ def test_VRFMgr_Update(self, dvs, testlog):
228228
('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen),
229229
]
230230

231-
random.seed(int(time.clock()))
231+
random.seed(int(time.time()))
232232

233233
state = self.vrf_create(dvs, "Vrf_a",
234234
[

0 commit comments

Comments
 (0)