Renamed singleShot to isSingleShot in QTimer stub

As in compliance to: http://doc.qt.io/qt-5/qtimer.html
This commit is contained in:
Bruno Oliveira 2015-04-04 12:52:49 -03:00
parent 6388ec4794
commit 065c3fcd9d

View File

@ -82,9 +82,9 @@ def test_disconnect_one_invalid(timer):
def test_singleshot(timer):
"""Test setting singleShot."""
assert not timer.singleShot()
assert not timer.isSingleShot()
timer.setSingleShot(True)
assert timer.singleShot()
assert timer.isSingleShot()
timer.start()
assert timer.isActive()
timer.timeout.emit()