aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2012-06-14 15:27:58 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2012-06-14 21:35:29 +0200
commitee9cda9b0bbe877d303d9838ce0af5623b484abb (patch)
tree462ce633e3f4478e13dfe2a94a18e6b5166b2eff /tests
parent30062e0944bf1a089d92f341f8a6b58dc6b3ba7f (diff)
Add missing unit test.
Change-Id: Ia8442dd910c52a892767a49a339c63fec6fbf3c0 Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtCore/bug_PYSIDE-42.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtCore/bug_PYSIDE-42.py b/tests/QtCore/bug_PYSIDE-42.py
new file mode 100644
index 000000000..553f1d137
--- /dev/null
+++ b/tests/QtCore/bug_PYSIDE-42.py
@@ -0,0 +1,17 @@
+from PySide.QtCore import *
+from PySide.QtGui import *
+import unittest
+
+class TestBugPYSIDE42 (unittest.TestCase):
+
+ def testIt(self):
+ obj1 = QFile()
+ obj2 = QObject()
+ hash1 = hash(obj1)
+ hash2 = hash(obj2)
+
+ self.assertNotEqual(hash1, hash2)
+ self.assertEqual(hash1, hash(obj1))
+
+if __name__ == '__main__':
+ unittest.main()