aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_PYSIDE-42.py
blob: 553f1d137d39553df5c6481bd3e820387d5a2530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()