Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error handling in deploy-esxi broken with requests 2.8 #42

Closed
glennmatthews opened this issue Dec 1, 2015 · 0 comments
Closed

error handling in deploy-esxi broken with requests 2.8 #42

glennmatthews opened this issue Dec 1, 2015 · 0 comments
Assignees
Labels

Comments

@glennmatthews
Copy link
Owner

$ python -m unittest2 discover -p test_deploy_esxi.py
........
----------------------------------------------------------------------
Ran 8 tests in 0.251s

OK
$ sudo pip install requests --upgrade
Collecting requests
  Downloading requests-2.8.1-py2.py3-none-any.whl (497kB)
    100% |████████████████████████████████| 499kB 805kB/s 
Installing collected packages: requests
  Found existing installation: requests 2.7.0
    Uninstalling requests-2.7.0:
      Successfully uninstalled requests-2.7.0
Successfully installed requests-2.8.1
$ 
$ python -m unittest2 discover -p test_deploy_esxi.py
......E.
======================================================================
ERROR: test_serial_fixup_connection_error (COT.tests.test_deploy_esxi.TestCOTDeployESXi)
Call fixup_serial_ports() to connect to an invalid host.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/glmatthe/Documents/OVF_Tools/cot-public/cot/COT/tests/test_deploy_esxi.py", line 207, in test_serial_fixup_connection_error
    self.instance.fixup_serial_ports, 2)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/unittest2/case.py", line 726, in assertRaises
    callableObj(*args, **kwargs)
  File "/Users/glmatthe/Documents/OVF_Tools/cot-public/cot/COT/deploy_esxi.py", line 336, in fixup_serial_ports
    self.username, self.password) as conn:
  File "/Users/glmatthe/Documents/OVF_Tools/cot-public/cot/COT/deploy_esxi.py", line 88, in __enter__
    e.errno = e.args[0].args[1].errno
IndexError: tuple index out of range

----------------------------------------------------------------------
Ran 8 tests in 0.231s

FAILED (errors=1)
$ 
@glennmatthews glennmatthews self-assigned this Dec 1, 2015
glennmatthews added a commit that referenced this issue Dec 1, 2015
glennmatthews added a commit that referenced this issue Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant