Skip to content

Commit 7b6228e

Browse files
author
Shakeel Mohamed
committed
in tests, rename context to req for clarity
1 parent 83d756f commit 7b6228e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ def urllib2_handler(url, message, **kwargs):
428428
method = message['method'].lower()
429429
data = message.get('body', "") if method == 'post' else None
430430
headers = dict(message.get('headers', []))
431-
context = urllib2.Request(url, data, headers)
431+
req = urllib2.Request(url, data, headers)
432432
try:
433-
response = urllib2.urlopen(context)
433+
response = urllib2.urlopen(req)
434434
except urllib2.HTTPError, response:
435435
pass # Propagate HTTP errors via the returned response message
436436
return {

0 commit comments

Comments
 (0)