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
This commit is contained in:
Cyril Roelandt
2015-03-25 15:16:33 +00:00
parent 3fa0e0e798
commit 5e8b889a14
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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