Traceback (most recent call last):


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 109, in __call__

function, args, kwargs


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 124, in _execute_function

return self._handle_function(fn=handle_function)


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 148, in _handle_function

return fn(cassette)


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 117, in handle_function

return function(*args, **kwargs)


 "/home/jking/pyvmomi/tests/test_connect.py", line 99, in test_ssl_tunnel_http_failure

self.assertRaises(http_client.HTTPException, should_fail)


 "/usr/lib/python3.6/unittest/case.py", line 733, in assertRaises

return context.handle('assertRaises', args, kwargs)


 "/usr/lib/python3.6/unittest/case.py", line 178, in handle

callable_obj(*args, **kwargs)


 "/home/jking/pyvmomi/tests/test_connect.py", line 98, in should_fail

connect.SoapStubAdapter('sdkTunnel', 8089, httpProxyHost='localhost', httpProxyPort=8899).GetConnection()


 "/home/jking/pyvmomi/pyVmomi/SoapAdapter.py", line 1405, in GetConnection

result = self.scheme(self.host, **self.schemeArgs)


 "/home/jking/pyvmomi/pyVmomi/SoapAdapter.py", line 1088, in __call__

resp = tunnel.getresponse()


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/stubs/__init__.py", line 220, in getresponse

if self.cassette.can_play_response_for(self._vcr_request):


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 255, in can_play_response_for

return request and request in self and \


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 326, in __contains__

for index, response in self._responses(request):


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/cassette.py", line 250, in _responses

if requests_match(request, stored_request, self._match_on):


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/matchers.py", line 99, in requests_match

matches = [(m(r1, r2), m) for m in matchers]


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/matchers.py", line 99, in <listcomp>

matches = [(m(r1, r2), m) for m in matchers]


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/matchers.py", line 27, in port

return r1.port == r2.port


 "/home/jking/pyvmomi/.eggs/vcrpy-2.0.1-py3.6.egg/vcr/request.py", line 61, in port

port = {'https': 443, 'http': 80}[parse_uri.scheme]
KeyError: ''

Traceback (most recent call last):


 "C:\Users\dellpc\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get

value = obj._trait_values[self.name]
KeyError: 'context'
