Added PyPy env to tox.ini
Also fixes tests that were broken on PyPy. Co-Authored-By: Jim Rollenhagen <jim@jimrollenhagen.com> Change-Id: I2554aa844b040c4c74cbf287dccb06d816a39dbe
This commit is contained in:
Alex Gaynor
committed by
Jim Rollenhagen
parent
6329ae46db
commit
a3cab12393
2 changed files with 3 additions and 3 deletions
@@ -128,7 +128,7 @@ class GenericHardwareManager(HardwareManager):
def _list_block_devices(self):
report = self._cmd(['blockdev', '--report'])[0]
lines = report.split('\n')
lines = [line.split() for line in lines if line is not '']
lines = [line.split() for line in lines if line != '']
startsec_idx = lines[0].index('StartSec')
device_idx = lines[0].index('Device')
size_idx = lines[0].index('Size')
4
tox.ini
4
tox.ini
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,pep8
envlist = py26,py27,pypy,pep8
[testenv]
usedevelop = True
@@ -39,4 +39,4 @@ builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,*ironic/nova*,tools
[hacking]
import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers
import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.