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:
parent
6329ae46db
commit
a3cab12393
@ -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')
|
||||
|
2
tox.ini
2
tox.ini
@ -1,7 +1,7 @@
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
skipsdist = True
|
||||
envlist = py26,py27,pep8
|
||||
envlist = py26,py27,pypy,pep8
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user