Created unittest for bug #338.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
64663cdb4e
commit
ae435c55fc
2 changed files with 25 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ PYSIDE_TEST(bug_243.py)
|
||||||
PYSIDE_TEST(bug_300_test.py)
|
PYSIDE_TEST(bug_300_test.py)
|
||||||
PYSIDE_TEST(bug_307.py)
|
PYSIDE_TEST(bug_307.py)
|
||||||
PYSIDE_TEST(bug_324.py)
|
PYSIDE_TEST(bug_324.py)
|
||||||
|
PYSIDE_TEST(bug_338.py)
|
||||||
PYSIDE_TEST(add_action_test.py)
|
PYSIDE_TEST(add_action_test.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
||||||
|
|
|
||||||
24
tests/QtGui/bug_338.py
Normal file
24
tests/QtGui/bug_338.py
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
''' Test bug 338: http://bugs.openbossa.org/show_bug.cgi?id=338'''
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
from PySide import QtCore,QtGui
|
||||||
|
|
||||||
|
class DiagramItem(QtGui.QGraphicsPolygonItem):
|
||||||
|
def __init__(self, parent=None, scene=None):
|
||||||
|
super(DiagramItem, self).__init__(parent, scene)
|
||||||
|
|
||||||
|
def itemChange(self, change, value):
|
||||||
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
class BugTest(unittest.TestCase):
|
||||||
|
def test(self):
|
||||||
|
app = QtGui.QApplication(sys.argv)
|
||||||
|
scene = QtGui.QGraphicsScene()
|
||||||
|
item = DiagramItem()
|
||||||
|
item2 = DiagramItem()
|
||||||
|
#this cause segfault
|
||||||
|
scene.addItem(item)
|
||||||
|
scene.addItem(item2)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue