Tests synchronized with the boost python PySide.
This commit is contained in:
parent
84282e06ac
commit
3deada6b7e
14 changed files with 329 additions and 8 deletions
22
tests/qtcore/deletelater_test.py
Normal file
22
tests/qtcore/deletelater_test.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
'''Test cases for QTimer.singleShot'''
|
||||
|
||||
import unittest
|
||||
|
||||
from PySide.QtCore import QObject, QTimer, QCoreApplication, SIGNAL
|
||||
from helper import UsesQCoreApplication
|
||||
|
||||
class TestDeleteLater(UsesQCoreApplication):
|
||||
'''Test case for function DeleteLater'''
|
||||
|
||||
def testCase(self):
|
||||
o = QObject()
|
||||
o.deleteLater()
|
||||
del o
|
||||
QTimer.singleShot(100, self.app.quit)
|
||||
self.app.exec_()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue