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:
parent
1be25c54bb
commit
933669eeb7
4 changed files with 52 additions and 14 deletions
|
|
@ -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
13
tests/QtGui/bug_882.py
Normal 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_()
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue