Fix bug 822 - "Can't use QApplication without X"

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2011-06-10 18:35:31 -03:00
commit 933669eeb7
4 changed files with 52 additions and 14 deletions

View file

@ -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)

13
tests/QtGui/bug_882.py Normal file
View file

@ -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_()