aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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()