Created unittest for bug #332.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
3edeee197a
commit
2559ae50f0
2 changed files with 17 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
PYSIDE_TEST(bug_278_test.py)
|
PYSIDE_TEST(bug_278_test.py)
|
||||||
|
PYSIDE_TEST(bug_332.py)
|
||||||
PYSIDE_TEST(blocking_signals_test.py)
|
PYSIDE_TEST(blocking_signals_test.py)
|
||||||
PYSIDE_TEST(child_event_test.py)
|
PYSIDE_TEST(child_event_test.py)
|
||||||
PYSIDE_TEST(deletelater_test.py)
|
PYSIDE_TEST(deletelater_test.py)
|
||||||
|
|
|
||||||
16
tests/QtCore/bug_332.py
Normal file
16
tests/QtCore/bug_332.py
Normal file
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue