diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-07-21 14:35:01 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:37 -0300 |
commit | 5d05c840bf9635be129804be584243cb005cfe06 (patch) | |
tree | 9d96be94a80f538494dab5e95829aaf8bc061aa0 /tests/QtCore | |
parent | e3539a09a8c6fdcea1ad3029c8f85f81e303e6ff (diff) |
Moved test for bug #921 from QtCore's directory to QtGui's.
Because it imports QtGui module.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'tests/QtCore')
-rw-r--r-- | tests/QtCore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtCore/bug_921.py | 52 |
2 files changed, 0 insertions, 53 deletions
diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt index b7b1c8961..9ddb44c99 100644 --- a/tests/QtCore/CMakeLists.txt +++ b/tests/QtCore/CMakeLists.txt @@ -17,7 +17,6 @@ PYSIDE_TEST(bug_826.py) PYSIDE_TEST(bug_829.py) PYSIDE_TEST(bug_835.py) PYSIDE_TEST(bug_920.py) -PYSIDE_TEST(bug_921.py) PYSIDE_TEST(bug_927.py) PYSIDE_TEST(bug_931.py) PYSIDE_TEST(blocking_signals_test.py) diff --git a/tests/QtCore/bug_921.py b/tests/QtCore/bug_921.py deleted file mode 100644 index b43f5b3d2..000000000 --- a/tests/QtCore/bug_921.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python - -import unittest - -import PySide.QtCore as QtCore -import PySide.QtGui as QtGui - -from helper import TimedQApplication - -class Signaller(QtCore.QObject): - s1 = QtCore.Signal() - s2 = QtCore.Signal() - s3 = QtCore.Signal() - -class Window(object): - - def __init__(self, s): - self._window = QtGui.QMainWindow() - self._window.setAttribute(QtCore.Qt.WA_DeleteOnClose, True) - self._window.setWindowTitle("Demo!") - - self._s = s - self._s.s1.connect(self._on_signal) - self._s.s2.connect(self._on_signal) - - def show(self): - self._window.show() - - def _on_signal(self): - self._window.setWindowTitle("Signaled!") - -class TestTimedApp(TimedQApplication): - def testSignals(self): - s = Signaller() - w = Window(s) - w.show() - - def midleFunction(): - def internalFunction(): - pass - s.s3.connect(internalFunction) - - midleFunction() - self.app.exec_() - del w - - s.s1.emit() - s.s2.emit() - s.s3.emit() - -if __name__ == '__main__': - unittest.main() |