summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_711.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_711.py')
-rw-r--r--tests/QtGui/bug_711.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/QtGui/bug_711.py b/tests/QtGui/bug_711.py
new file mode 100644
index 0000000..f3d0b59
--- /dev/null
+++ b/tests/QtGui/bug_711.py
@@ -0,0 +1,21 @@
+import unittest
+import sys
+from PySide.QtGui import QToolBar, QApplication, QAction, QToolButton
+
+class TestLabelPixmap(unittest.TestCase):
+ def testReference(self):
+ toolbar = QToolBar()
+
+ for i in xrange(20):
+ toolbar.addAction(QAction("Action %d" % i, None))
+
+ buttons = toolbar.findChildren(QToolButton, "")
+ toolbar.clear()
+
+ for b in buttons:
+ self.assertRaises(RuntimeError, b.objectName)
+
+if __name__ == '__main__':
+ app = QApplication([])
+ unittest.main()
+