aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_332.py
blob: 32ff414ad81290c0422a1b60b4d6b82724c9f4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python

import unittest
from PySide import QtCore

class Lock(QtCore.QMutex):
    def tryLock(self,timeoutt=10):
        return QtCore.QMutex.tryLock(self,timeoutt)

class TestBug(unittest.TestCase):

    def testCase(self):
        l = Lock()
        l.tryLock() # this cause a assertion


if __name__ == '__main__':
    unittest.main()