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:
Hugo Parente Lima 2010-12-30 15:26:20 -02:00
commit 394cdb357d
3 changed files with 17 additions and 2 deletions

14
tests/QtGui/bug_546.py Normal file
View 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()