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 | |
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')
-rw-r--r-- | tests/QtCore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtCore/bug_332.py | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt index f364f4c43..e0624e06f 100644 --- a/tests/QtCore/CMakeLists.txt +++ b/tests/QtCore/CMakeLists.txt @@ -1,4 +1,5 @@ PYSIDE_TEST(bug_278_test.py) +PYSIDE_TEST(bug_332.py) PYSIDE_TEST(blocking_signals_test.py) PYSIDE_TEST(child_event_test.py) PYSIDE_TEST(deletelater_test.py) 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 + + |