boottest - Add exception message to warning print and fix typo

This commit is contained in:
Joe Talbott 2015-02-05 11:20:28 -05:00
parent 87ccbfd731
commit f0a55936f5
2 changed files with 3 additions and 3 deletions

View File

@ -82,8 +82,8 @@ class TouchManifest(object):
try:
response = urllib.urlopen(url)
except IOError as e:
print("W: [%s] - error connecting to %s" % (
time.asctime(), self.path))
print("W: [%s] - error connecting to %s: %s" % (
time.asctime(), self.path, e))
return success # failure
# Only [re]create the manifest file if one was successfully downloaded

View File

@ -89,7 +89,7 @@ class TestTouchManifest(unittest.TestCase):
self.assertEqual(1, len(manifest._manifest))
self.assertIn('foo', manifest)
def test_fetch_excpetion(self):
def test_fetch_exception(self):
_p = mock.patch('urllib.urlopen')
mocked_urlopen = _p.start()
self.addCleanup(_p.stop)