summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-08 15:36:37 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-08 16:19:09 -0300
commit6fb0e698eeeb4eda86df2f59b833eada0543fdc4 (patch)
treede9ff06707e59b0310a45941c937eb769a263e6d
parente5348268a63a8fd15519c703c4e6e7feb34f4282 (diff)
downloadshiboken-6fb0e698eeeb4eda86df2f59b833eada0543fdc4.tar.gz
shiboken-6fb0e698eeeb4eda86df2f59b833eada0543fdc4.tar.xz
shiboken-6fb0e698eeeb4eda86df2f59b833eada0543fdc4.zip
Repeat the same test, but using new style signals to cause a segfault.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--tests/QtNetwork/basic_auth_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/QtNetwork/basic_auth_test.py b/tests/QtNetwork/basic_auth_test.py
index ed58e582..3f1b87b7 100644
--- a/tests/QtNetwork/basic_auth_test.py
+++ b/tests/QtNetwork/basic_auth_test.py
@@ -34,5 +34,15 @@ class testAuthenticationSignal(UsesQCoreApplication):
self.app.exec_()
self.assert_(self._resultOk)
+ def testwaitSignal2(self):
+ http = QHttp()
+ http.setHost("localhost", self.httpd.port())
+ # Using new signal slot syntax causes a segfault
+ http.authenticationRequired.connect(self.onAuthRequest)
+ path = QUrl.toPercentEncoding("/index.html", "!$&'()*+,;=:@/")
+ data = http.get(path)
+ self.app.exec_()
+ self.assert_(self._resultOk)
+
if __name__ == '__main__':
unittest.main()