Closed mapellidario closed 3 years ago
@mapellidario please do not work on this one yet. I have faced similar problems while fixing those two WorkQueue_t unit tests and I have been trying a couple of things in https://github.com/dmwm/WMCore/pull/10588
We can touch base on slack as well.
Impact of the bug
src/python/WMCore/Services/Requests.py
, and possibly some of the code that depends on itDescribe the bug
result = self.decode(result)
transformsresults
from a bytes string containg for example{"hello": 1, "world"2}
to a unicode string containgb'{"hello": 1, "world"2}'
, which is no longer parsable byjson.loads()
How to reproduce it
py3 env,
Expected behavior the unittest should not fail
Additional context and error message
adding the following log in
src/python/WMCore/Services/Requests.py
when we run the unittest we have