diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-06-10 18:35:31 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:29 -0300 |
commit | 590abafc54206e458066f5632accda94e37f5edf (patch) | |
tree | 6e7fb1ec6c820db8d85b1c186f7194fc93f53061 /tests/QtGui | |
parent | b66f8a789a55d07ad9fec0d9c40893ecf3952157 (diff) |
Fix bug 822 - "Can't use QApplication without X"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtGui')
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_882.py | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index 9afe3175c..5209ee581 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -64,6 +64,7 @@ PYSIDE_TEST(bug_854.py) PYSIDE_TEST(bug_860.py) PYSIDE_TEST(bug_862.py) PYSIDE_TEST(bug_871.py) +PYSIDE_TEST(bug_882.py) PYSIDE_TEST(customproxywidget_test.py) PYSIDE_TEST(deepcopy_test.py) PYSIDE_TEST(event_filter_test.py) diff --git a/tests/QtGui/bug_882.py b/tests/QtGui/bug_882.py new file mode 100644 index 000000000..88f769cbe --- /dev/null +++ b/tests/QtGui/bug_882.py @@ -0,0 +1,13 @@ +from PySide.QtGui import * +from PySide.QtCore import * +import os + +if "DISPLAY" in os.environ: + del os.environ["DISPLAY"] + +app = QApplication([], False) +QTimer.singleShot(0, app.quit) +app.exec_() + + + |