mirror of https://github.com/grpc/grpc.git
Fix python3 performance tests - incomplete migration from python2 (#25734)
This fixes a crash in the grpc_performance_profile_* and grpc_e2e_performance_* tests. Example failure: https://source.cloud.google.com/results/invocations/2112f2d5-db91-4901-87cb-cc9865f351f1/targets The daily performance test passes with this fixit branch: http://sponge2/23d4df20-f4dd-48ee-8789-4cd96b078ed5. Additional fixes: reorder imports according to the google style guide replace deprecated cgi.escape library method with html.escape In case it comes up, with respect to upgrading from py2 to py3, the iter{items,keys,values} methods are intentionally replaced with the less-efficient-in-python2 non-iter versions. This is a recommended practice even when supporting both python versions, and this is not performance-critical code. Additional note: there is no performance difference btw py2 and py3 (~80 minutes to finish)pull/25153/head
parent
633b695af4
commit
4ea47d6ae3
2 changed files with 26 additions and 27 deletions
Loading…
Reference in new issue