From 5e8b889a1404f5596bafc6d6f1bd31edbc550699 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Wed, 25 Mar 2015 15:16:33 +0000 Subject: [PATCH] Port to Python 3 * added python 3.3 and 3.4 to the setup * fixed job binaries test to use proper byte object Change-Id: I61aaf435f28ebb30141878137921056bc9025e18 Implements: blueprint python3-compatible --- saharaclient/tests/unit/test_job_binaries.py | 2 +- setup.cfg | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/saharaclient/tests/unit/test_job_binaries.py b/saharaclient/tests/unit/test_job_binaries.py index fceb0ca9..e2c1fa43 100644 --- a/saharaclient/tests/unit/test_job_binaries.py +++ b/saharaclient/tests/unit/test_job_binaries.py @@ -77,4 +77,4 @@ class JobBinaryTest(base.BaseTestCase): resp = self.client.job_binaries.get_file('id') self.assertEqual(url, self.responses.last_request.url) - self.assertEqual('data', resp) + self.assertEqual(b'data', resp) diff --git a/setup.cfg b/setup.cfg index ef980af8..eeea8527 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,9 @@ classifier = Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 2.6 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.3 + Programming Language :: Python :: 3.4 [global] setup-hooks = pbr.hooks.setup_hook