Skip to content

Commit ba5d535

Browse files
committed
fix handling of variables
1 parent 1c57778 commit ba5d535

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/mod_wsgi_test/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ def __init__(self, options, urls, nrequests_per_thread):
103103
def run(self):
104104
for _i in range(self.nrequests_per_thread):
105105
try:
106-
get(urls)
106+
get(self.urls)
107107
except Exception as e:
108108
print(e)
109109

110-
if not options.continue_:
110+
if not self.options.continue_:
111111
thread.interrupt_main()
112112
thread.exit()
113113

@@ -117,7 +117,7 @@ def run(self):
117117
URLGetterThread.counter += 1
118118
counter = URLGetterThread.counter
119119

120-
should_print = options.verbose and not counter % 1000
120+
should_print = self.options.verbose and not counter % 1000
121121

122122
if should_print:
123123
print(counter)

0 commit comments

Comments
 (0)