commit | 63d33983e33f534f59eb953323cb4ef733186b61 | [log] [tgz] |
---|---|---|
author | Martin Kopec <mkopec@redhat.com> | Sun Jan 20 15:24:10 2019 +0000 |
committer | Vasyl Saienko <vsaienko@mirantis.com> | Mon Jan 27 14:39:35 2020 +0000 |
tree | 2bfe8031283b6610b1799b24cc200f6c600f32b8 | |
parent | 08ef2443c3ceb72a850ed6f0535253e64102a14a [diff] |
Fix tempest cleanup for python3 When using python3 the file which is read and loaded by jsonutils needs to be opened in binary mode, otherwise, it's causing problems. It is a known bug [1] in jsonutils from oslo.serialization module. The patch also adds a unit test which tests the loading of a json file. [1] https://bugs.launchpad.net/oslo.serialization/+bug/1515231 Related-Prod: PRODX-2516 Closes-Bug: #1806089 Change-Id: I3db71c6662d9137a4b75381de7d6dbddd3de4e09