diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-14 18:19:15 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-09-14 18:31:34 -0300 |
commit | 2559ae50f05f5135f88361fdc60f558c382d0b80 (patch) | |
tree | d5f487b79ff930a2a864068d75027fb7a2ffe562 /tests/QtCore/bug_332.py | |
parent | 3edeee197ac061b3dbd861d63baf489f9031a96d (diff) |
Created unittest for bug #332.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtCore/bug_332.py')
-rw-r--r-- | tests/QtCore/bug_332.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtCore/bug_332.py b/tests/QtCore/bug_332.py new file mode 100644 index 000000000..ae087421b --- /dev/null +++ b/tests/QtCore/bug_332.py @@ -0,0 +1,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 + + |