On Sun, 22 May 2016, Eric Evans wrote: > [ Scott Moser ] > > When merging Ubuntu's python-boto delta from Debian, we have 2 changes > > that we're carrying, both represented in the attached diff. > > > > a.) run tests/test.py with each python in 'pyversions -i' > > This seemed simply typo/oversite. debian/tests/unit was doing: > > for python in $(pyversions -i) > > tests/test.py unit > /dev/null; done > > It didn't seem like there was any way that the expected python > > would be used there. Instead, I changed it to run: > > $python tests/test.py unit > > Definitely an oversight, thanks for bringing to my attention!
Thanks. Looks like we can drop our delta if you get these two changes in, which is great. > > b.) Corey Bryant made a change to debian/tests/test.py described as > > "d/tests/unit: Fix autopkgtest error in test_timeout." . > > Unfortunately I don't have more information on this. I forwarded this upstream to boto at https://github.com/boto/boto/issues/3545 If you try running: nosetests -v tests/unit/manage/test_ssh.py And you have python-paramiko installed (so it doesn't skip it). Then its easily enough reproducible. Basically the test (via paramiko) requires a ~/.ssh/known_hosts. You can rm -Rf ~/.ssh/ to test, or if you're adverse to that (which makes sense) then something like below will still show it. Let me know if you need anything else. $ HOME=$(mktemp -d) nosetests -v tests/unit/manage/test_ssh.py test_timeout (tests.unit.manage.test_ssh.TestSSHTimeout) ... ERROR ====================================================================== ERROR: test_timeout (tests.unit.manage.test_ssh.TestSSHTimeout) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ubuntu/python-boto-2.38.0/tests/unit/manage/test_ssh.py", line 48, in test_timeout test = SSHClient(server) File "/home/ubuntu/python-boto-2.38.0/boto/manage/cmdshell.py", line 62, in __init__ self._ssh_client.load_host_keys(os.path.expanduser(host_key_file)) File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 124, in load_host_keys self._host_keys.load(filename) File "/usr/lib/python2.7/dist-packages/paramiko/hostkeys.py", line 95, in load with open(filename, 'r') as f: IOError: [Errno 2] No such file or directory: '/tmp/tmp.HXnpo7af51/.ssh/known_hosts' ---------------------------------------------------------------------- Ran 1 test in 0.001s