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
16
tests/qtcore/qhandle_test.py
Normal file
16
tests/qtcore/qhandle_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/python
|
||||
'''Test cases for QEnum and QFlags'''
|
||||
|
||||
import unittest
|
||||
|
||||
from PySide.QtCore import QThread, Qt
|
||||
|
||||
class TestHANDLE(unittest.TestCase):
|
||||
def testIntConversion(self):
|
||||
i = 0
|
||||
h = QThread.currentThreadId()
|
||||
i = 0 + int(h)
|
||||
self.assertEqual(i, int(h))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue