registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #09326
[Bug 610140] Re: r164 - ApiEc2TestCase failures - HTTPHeaders
fix that supports both versions:
=== modified file 'nova/tests/api_unittest.py'
--- nova/tests/api_unittest.py 2010-07-15 23:13:48 +0000
+++ nova/tests/api_unittest.py 2010-07-27 01:45:18 +0000
@@ -43,7 +43,13 @@
connection should be a FakeTornadoHttpConnection instance
"""
- headers = httpserver.HTTPHeaders()
+ # fix to support all versions of tornado
+ try:
+ headers = httpserver.HTTPHeaders()
+ except AttributeError:
+ from tornado import httputil
+ headers = httputil.HTTPHeaders()
+
for k, v in headers.iteritems():
headers[k] = v
--
r164 - ApiEc2TestCase failures - HTTPHeaders
https://bugs.launchpad.net/bugs/610140
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.
References