Add py33 target into tox.ini

Enable tests that could be imported into py33 environment.

Part of blueprint bp/py33

Change-Id: I097e406cda3b86ad75e6f2f780b9a700b4fe42ef
This commit is contained in:
Ilya Shakhat
2014-06-27 14:00:53 +04:00
parent d6b37e6bc8
commit 38d31a0c2d
4 changed files with 30 additions and 9 deletions

View File

@@ -108,10 +108,10 @@ def read_json_from_uri(uri):
def make_range(start, stop, step):
last_full = stop - ((stop - start) % step)
for i in xrange(start, last_full, step):
yield xrange(i, i + step)
for i in six.moves.xrange(start, last_full, step):
yield six.moves.xrange(i, i + step)
if stop > last_full:
yield xrange(last_full, stop)
yield six.moves.xrange(last_full, stop)
def store_user(runtime_storage_inst, user):