diff --git a/pyqtgraph/parametertree/tests/test_parametertypes.py b/pyqtgraph/parametertree/tests/test_parametertypes.py index 4ce19ebf..5e0957c3 100644 --- a/pyqtgraph/parametertree/tests/test_parametertypes.py +++ b/pyqtgraph/parametertree/tests/test_parametertypes.py @@ -157,7 +157,7 @@ def test_data_race(): p.sigValueChanged.connect(override) t.setParameters(p) - pi, = t.listAllItems() + pi = next(iter(p.items)) assert pi.param is p pi.widget.setValue(2) assert p.value() == pi.widget.value() == 1