auth_token body errors are not returned as bytes for py34
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystonemiddleware |
Fix Released
|
Medium
|
Chmouel Boudjnah |
Bug Description
[Caveat: I am not a py34 expert so I may be just wrong here ;) ]
I am trying to use auth_token middleware for a personal project, this project is a py34 only. So far at runtime things seems to work and auth_token works under py34 byt when trying to integrate this with webtest for my unittesting I am getting this error ;
AssertionError: Iterator <list_iterator object at 0x7f8605664128> returned a non-<class 'bytes'> object: 'Authentication required'
this come from webtest which explictely check if the error message come as bytes :
https:/
it seems that the obvious fix is something like this (which should work on py2 as well) :
http://
Which seems right, I think but I am not totally sure, let me know what do you think before I submit it.
description: | updated |
Changed in keystonemiddleware: | |
importance: | Undecided → Medium |
Changed in keystonemiddleware: | |
milestone: | none → 1.3.0 |
Changed in keystonemiddleware: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/123451
Review: https:/