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>
This commit is contained in:
parent
e5348268a6
commit
6fb0e698ee
1 changed files with 10 additions and 0 deletions
|
|
@ -34,5 +34,15 @@ class testAuthenticationSignal(UsesQCoreApplication):
|
||||||
self.app.exec_()
|
self.app.exec_()
|
||||||
self.assert_(self._resultOk)
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue