Fix bug 546 - "Python crash on exit"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
This commit is contained in:
parent
249a87808a
commit
d0d4ba1564
3 changed files with 17 additions and 2 deletions
|
|
@ -3152,8 +3152,8 @@
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
<modify-function signature="setWidget(QWidget *)">
|
<modify-function signature="setWidget(QWidget *)">
|
||||||
<modify-argument index="1">
|
<modify-argument index="this">
|
||||||
<parent index="this" action="add"/>
|
<parent index="1" action="add"/>
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
</object-type>
|
</object-type>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ PYSIDE_TEST(bug_493.py)
|
||||||
PYSIDE_TEST(bug_500.py)
|
PYSIDE_TEST(bug_500.py)
|
||||||
PYSIDE_TEST(bug_512.py)
|
PYSIDE_TEST(bug_512.py)
|
||||||
PYSIDE_TEST(bug_525.py)
|
PYSIDE_TEST(bug_525.py)
|
||||||
|
PYSIDE_TEST(bug_546.py)
|
||||||
PYSIDE_TEST(bug_547.py)
|
PYSIDE_TEST(bug_547.py)
|
||||||
PYSIDE_TEST(bug_549.py)
|
PYSIDE_TEST(bug_549.py)
|
||||||
PYSIDE_TEST(bug_569.py)
|
PYSIDE_TEST(bug_569.py)
|
||||||
|
|
|
||||||
14
tests/QtGui/bug_546.py
Normal file
14
tests/QtGui/bug_546.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import unittest
|
||||||
|
from PySide.QtGui import *
|
||||||
|
|
||||||
|
class TestBug546(unittest.TestCase):
|
||||||
|
|
||||||
|
"""Test to check a crash at exit"""
|
||||||
|
def testIt(self):
|
||||||
|
app = QApplication([])
|
||||||
|
textEdit = QPlainTextEdit()
|
||||||
|
completer = QCompleter(("foo", "bar"), textEdit)
|
||||||
|
completer.setWidget(textEdit)
|
||||||
|
|
||||||
|
if __name__=='__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue