Tests synchronized with the boost python PySide.

This commit is contained in:
Hugo Lima 2009-12-15 15:37:20 -02:00
commit 3deada6b7e
14 changed files with 329 additions and 8 deletions

View 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()