Python 3.7: HTTPClientTest.test_get_request_options_with_profile_enabled fails

Bug #1790784 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mistralclient
New
Undecided
Unassigned

Bug Description

Hi. Building the python-mistralclient (Rocky, 3.7.0) under Debian Sid, the below unit test fails when using Python 3.7 (but works under Python 2.7). I haven't checked Python 3.6, but it looks like no problem with 3.5 (ie: under Stretch).

======================================================================
FAIL: mistralclient.tests.unit.test_httpclient.HTTPClientTest.test_get_request_options_with_profile_enabled
mistralclient.tests.unit.test_httpclient.HTTPClientTest.test_get_request_options_with_profile_enabled
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/mistralclient/tests/unit/test_httpclient.py", line 125, in test_get_request_options_with_profile_enabled
    self.assertEqual(signed_data[0], headers['X-Trace-Info'])
  File "/usr/lib/python3/dist-packages/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'x-trace-info'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.