diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-08 15:36:37 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-08 16:19:09 -0300 |
commit | 6fb0e698eeeb4eda86df2f59b833eada0543fdc4 (patch) | |
tree | de9ff06707e59b0310a45941c937eb769a263e6d | |
parent | e5348268a63a8fd15519c703c4e6e7feb34f4282 (diff) |
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.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/QtNetwork/basic_auth_test.py b/tests/QtNetwork/basic_auth_test.py index ed58e582c..3f1b87b7c 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() |