diff options
Diffstat (limited to 'tests/signals/multiple_connections_test.py')
-rw-r--r-- | tests/signals/multiple_connections_test.py | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/tests/signals/multiple_connections_test.py b/tests/signals/multiple_connections_test.py index 74a139631..d2a207673 100644 --- a/tests/signals/multiple_connections_test.py +++ b/tests/signals/multiple_connections_test.py @@ -6,13 +6,7 @@ from functools import partial from PySide.QtCore import QObject, SIGNAL, QProcess -try: - from PySide.QtGui import QPushButton, QSpinBox -except ImportError: - QPushButton = object - QSpinBox = object - -from helper import BasicPySlotCase, UsesQApplication, UsesQCoreApplication +from helper import BasicPySlotCase, UsesQCoreApplication from helper.decorators import requires @@ -47,26 +41,6 @@ class MultipleSignalConnections(unittest.TestCase): self.assert_(rec.called) -@requires('PySide.QtGui') -class QtGuiMultipleSlots(UsesQApplication, MultipleSignalConnections): - '''Multiple connections to QtGui signals''' - - def testButtonClick(self): - """Multiple connections to QPushButton.clicked()""" - sender = QPushButton('button') - receivers = [BasicPySlotCase() for x in range(30)] - self.run_many(sender, 'clicked()', sender.click, receivers) - - def testSpinBoxValueChanged(self): - """Multiple connections to QSpinBox.valueChanged(int)""" - for test in random_gen(10): - sender = QSpinBox() - #FIXME if number of receivers if higher than 50, segfaults - receivers = [BasicPySlotCase() for x in range(10)] - self.run_many(sender, 'valueChanged(int)', sender.setValue, - receivers, (test,)) - - class PythonMultipleSlots(UsesQCoreApplication, MultipleSignalConnections): '''Multiple connections to python signals''' |