diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-04 17:10:52 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-04 17:10:52 -0500 |
commit | 978991f5793f639f24c95df3beca5e4cdf98fd9c (patch) | |
tree | b56e04c278b666b4d188ad5160d60044c4a6372d /tests/unittests/test_datasource/test_openstack.py | |
parent | 56a594cb47342b89629e0876bd63b4e724d5e1a2 (diff) | |
parent | 04a60cf949e085f06fa1f93b39a74b8d288f0e2e (diff) | |
download | vyos-cloud-init-978991f5793f639f24c95df3beca5e4cdf98fd9c.tar.gz vyos-cloud-init-978991f5793f639f24c95df3beca5e4cdf98fd9c.zip |
Fix hang caused by HTTPretty on Python 3.4.2.
HTTPretty can causes hangs on Python 3.4.2 (and maybe Python 3.4.1), due
to a Python bug (fixed in Python 3.4.3). This works around the problem
in the appropriate Python versions.
See https://github.com/gabrielfalcao/HTTPretty/pull/193 and
https://github.com/gabrielfalcao/HTTPretty/issues/221 for details.
Diffstat (limited to 'tests/unittests/test_datasource/test_openstack.py')
-rw-r--r-- | tests/unittests/test_datasource/test_openstack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_openstack.py b/tests/unittests/test_datasource/test_openstack.py index 81411ced..0aa1ba84 100644 --- a/tests/unittests/test_datasource/test_openstack.py +++ b/tests/unittests/test_datasource/test_openstack.py @@ -31,7 +31,7 @@ from cloudinit.sources import DataSourceOpenStack as ds from cloudinit.sources.helpers import openstack from cloudinit import util -import httpretty as hp +hp = test_helpers.import_httpretty() BASE_URL = "http://169.254.169.254" PUBKEY = u'ssh-rsa AAAAB3NzaC1....sIkJhq8wdX+4I3A4cYbYP ubuntu@server-460\n' |