summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-04 19:08:29 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-05 14:19:59 -0300
commitebe20bd63fa677804a520df6ce1a2fd64a9401ad (patch)
tree4da28a15e8c68841d57681d9806e28ed8dee06ef /tests
parent5f21b20e722a41bd3d1d9bbf4c36f8f08aba4f63 (diff)
downloadpyside-ebe20bd63fa677804a520df6ce1a2fd64a9401ad.tar.gz
pyside-ebe20bd63fa677804a520df6ce1a2fd64a9401ad.tar.xz
pyside-ebe20bd63fa677804a520df6ce1a2fd64a9401ad.zip
Add unit test for bug#172
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_172.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index f260321..350948b 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -1,6 +1,7 @@
#Keep this in alphabetical sort
PYSIDE_TEST(api2_test.py)
+PYSIDE_TEST(bug_172.py)
PYSIDE_TEST(bug_243.py)
PYSIDE_TEST(bug_300_test.py)
PYSIDE_TEST(bug_307.py)
diff --git a/tests/QtGui/bug_172.py b/tests/QtGui/bug_172.py
new file mode 100644
index 0000000..d14c94c
--- /dev/null
+++ b/tests/QtGui/bug_172.py
@@ -0,0 +1,13 @@
+from PySide.QtGui import *
+
+if __name__ == '__main__':
+ app = QApplication([])
+
+ wdg = QWidget()
+
+ hbox = QHBoxLayout()
+
+ vbox = QVBoxLayout()
+ vbox.addLayout(hbox)
+
+ wdg.setLayout(vbox)