You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2019/11/08 21:33:04 UTC
[trafficserver] 01/04: tests: Cleans up local variable is assigned
to but never used warnings
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 61697bbc96ce3c57048f93bd5c6f6c46d1814ca1
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Mon Nov 4 18:42:57 2019 -0800
tests: Cleans up local variable is assigned to but never used warnings
(cherry picked from commit 61cce69983283a9613cafb8867e53b8595465efe)
---
tests/gold_tests/h2/h2bigclient.py | 1 -
tests/gold_tests/h2/h2chunked.py | 1 -
tests/gold_tests/h2/h2client.py | 1 -
tests/gold_tests/tls/tls_ticket.test.py | 1 -
4 files changed, 4 deletions(-)
diff --git a/tests/gold_tests/h2/h2bigclient.py b/tests/gold_tests/h2/h2bigclient.py
index 6e0cec8..8bc6a06 100644
--- a/tests/gold_tests/h2/h2bigclient.py
+++ b/tests/gold_tests/h2/h2bigclient.py
@@ -43,7 +43,6 @@ def makerequest(port):
# Fetch the object twice so we know at least one time comes from cache
# Exploring timing options
sites = ['/bigfile', '/bigfile']
- responses = []
request_ids = []
for site in sites:
request_id = conn.request('GET', url=site)
diff --git a/tests/gold_tests/h2/h2chunked.py b/tests/gold_tests/h2/h2chunked.py
index 8b1d051..e929450 100644
--- a/tests/gold_tests/h2/h2chunked.py
+++ b/tests/gold_tests/h2/h2chunked.py
@@ -41,7 +41,6 @@ def makerequest(port, _url):
conn = HTTPConnection('localhost:{0}'.format(port), secure=True)
sites = {'/'}
- responses = []
request_ids = []
for site in sites:
request_id = conn.request('GET', url=_url)
diff --git a/tests/gold_tests/h2/h2client.py b/tests/gold_tests/h2/h2client.py
index df0d19f..5042965 100644
--- a/tests/gold_tests/h2/h2client.py
+++ b/tests/gold_tests/h2/h2client.py
@@ -41,7 +41,6 @@ def makerequest(port):
conn = HTTPConnection('localhost:{0}'.format(port), secure=True)
sites = {'/'}
- responses = []
request_ids = []
for site in sites:
request_id = conn.request('GET', url=site)
diff --git a/tests/gold_tests/tls/tls_ticket.test.py b/tests/gold_tests/tls/tls_ticket.test.py
index 4d34ddb..d26e14d 100644
--- a/tests/gold_tests/tls/tls_ticket.test.py
+++ b/tests/gold_tests/tls/tls_ticket.test.py
@@ -95,7 +95,6 @@ def checkSession(ev) :
f1Content = f1.read()
f2Content = f2.read()
- sessRegex = re.compile('Session-ID: ([0-9A-F]+)')
match1 = re.findall('Session-ID: ([0-9A-F]+)', f1Content)
match2 = re.findall('Session-ID: ([0-9A-F]+)', f2Content)