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

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