Skip to content
Snippets Groups Projects
Commit 0f9d9872 authored by Samuel Gaist's avatar Samuel Gaist
Browse files

[test][spinboxes] Update no.bool to bool following warning

parent 60a071d8
No related branches found
No related tags found
1 merge request!153Fix experiment editor
......@@ -48,7 +48,7 @@ def expected_values():
class TestInvalidTypes:
"""Test using invalid types for creation"""
@pytest.mark.parametrize("invalid_type", [None, np.bool, np.str])
@pytest.mark.parametrize("invalid_type", [None, bool, np.str])
def test_invalid_type(self, qtbot, invalid_type):
with pytest.raises(RuntimeError):
NumpySpinBox(invalid_type)
......@@ -57,7 +57,7 @@ class TestInvalidTypes:
class SpinBoxBaseTest:
numpy_type = None
@pytest.mark.parametrize("invalid_type", [None, np.bool, np.str])
@pytest.mark.parametrize("invalid_type", [None, bool, np.str])
def test_set_invalid_type(self, qtbot, invalid_type):
spinbox = NumpySpinBox(self.numpy_type)
with pytest.raises(RuntimeError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment