TST: python 3 generator compat
.keys() in python2 returns a list, .keys() in python3 returns a generator. Wrap .keys() in a list so that you can index on it in python3
This commit is contained in:
parent
934c2e437f
commit
5bfb903dac
@ -12,7 +12,7 @@ def test_opts():
|
||||
tree = pt.ParameterTree()
|
||||
tree.setParameters(param)
|
||||
|
||||
assert param.param('bool').items.keys()[0].widget.isEnabled() is False
|
||||
assert param.param('color').items.keys()[0].widget.isEnabled() is False
|
||||
assert list(param.param('bool').items.keys())[0].widget.isEnabled() is False
|
||||
assert list(param.param('color').items.keys())[0].widget.isEnabled() is False
|
||||
|
||||
|
||||
|
@ -12,8 +12,8 @@ w = pg.{classname}({args})
|
||||
|
||||
|
||||
def test_exit_crash():
|
||||
# For each Widget subclass, run a simple python script that creates an
|
||||
# instance and then shuts down. The intent is to check for segmentation
|
||||
# For each Widget subclass, run a simple python script that creates an
|
||||
# instance and then shuts down. The intent is to check for segmentation
|
||||
# faults when each script exits.
|
||||
tmp = tempfile.mktemp(".py")
|
||||
path = os.path.dirname(pg.__file__)
|
||||
|
Loading…
Reference in New Issue
Block a user