def test_setMinimumMaximum(self, spinbox):
        spinbox.setMinimum(0)
        spinbox.setMinimum(long(0))
        spinbox.setMinimum(1)
        spinbox.setMinimum(long(1))
        spinbox.setMinimum(-1)
        spinbox.setMinimum(long(-1))
        with pytest.raises(TypeError) as excinfo:
            spinbox.setMinimum('')
        assert "int or long" in str(excinfo.value)

        spinbox.setMaximum(0)
        spinbox.setMaximum(long(0))
        spinbox.setMaximum(1)
        spinbox.setMaximum(long(1))
        spinbox.setMaximum(-1)
        spinbox.setMaximum(long(-1))
        with pytest.raises(TypeError) as excinfo:
            spinbox.setMaximum('')
        assert "int or long" in str(excinfo.value)
dataset/ETHPy150Open datalyze-solutions/pandas-qt/tests/test_BigIntSpinbox.py/TestClass.test_setMinimumMaximum/original