~awilliamson/cloud-init/sfdisk-resizer

« back to all changes in this revision

Viewing changes to tests/unittests/test_ec2_util.py

  • Committer: Scott Moser
  • Date: 2015-03-04 22:10:52 UTC
  • mfrom: (1072.2.1 fix_py34_test_hang)
  • Revision ID: smoser@ubuntu.com-20150304221052-unhv6sen6i7vg7s5
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from cloudinit import ec2_utils as eu
4
4
from cloudinit import url_helper as uh
5
5
 
6
 
import httpretty as hp
 
6
hp = helpers.import_httpretty()
7
7
 
8
8
 
9
9
class TestEc2Util(helpers.HttprettyTestCase):