e6e87aa55e
* DataTable: don't try to decode Unicode from UTF-8. Only decode on Python 2. * Use oslo_serialization.jsonutils.dump_as_bytes() to encode JSON as bytes. * Use oslo_serialization.jsonutils.loads() instead of json.loads() to accept bytes string as input. On Python 3, json.loads() only accepts Unicode string. * Fix unit tests: HTTP body type is bytes. * Container tests: use a named temporary file, the function handling the filename fails. On Python 3, TemporaryFile() uses a number for the filename: the file descriptor. * Don't encode filename to UTF-8 on Python 3, keep Unicode. * tox.ini: add 2 admin tests on Python 3.4. Partial-Implements: blueprint porting-python3 Change-Id: Ib7e2cb17f20474590fac18faf8116131692ad694