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