Convert QByteArray values to string during function call.
This commit is contained in:
parent
90bdf74053
commit
c7f6b49e1e
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ class testAuthenticationSignal(UsesQCoreApplication):
|
||||||
http.setHost("localhost", self.httpd.port())
|
http.setHost("localhost", self.httpd.port())
|
||||||
http.connect(SIGNAL("authenticationRequired(const QString&, quint16, QAuthenticator*)"), self.onAuthRequest)
|
http.connect(SIGNAL("authenticationRequired(const QString&, quint16, QAuthenticator*)"), self.onAuthRequest)
|
||||||
path = QUrl.toPercentEncoding("/index.html", "!$&'()*+,;=:@/")
|
path = QUrl.toPercentEncoding("/index.html", "!$&'()*+,;=:@/")
|
||||||
data = http.get(path)
|
data = http.get(str(path))
|
||||||
self.app.exec_()
|
self.app.exec_()
|
||||||
self.assert_(self._resultOk)
|
self.assert_(self._resultOk)
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@ class testAuthenticationSignal(UsesQCoreApplication):
|
||||||
# Using new signal slot syntax causes a segfault
|
# Using new signal slot syntax causes a segfault
|
||||||
http.authenticationRequired.connect(self.onAuthRequest)
|
http.authenticationRequired.connect(self.onAuthRequest)
|
||||||
path = QUrl.toPercentEncoding("/index.html", "!$&'()*+,;=:@/")
|
path = QUrl.toPercentEncoding("/index.html", "!$&'()*+,;=:@/")
|
||||||
data = http.get(path)
|
data = http.get(str(path))
|
||||||
self.app.exec_()
|
self.app.exec_()
|
||||||
self.assert_(self._resultOk)
|
self.assert_(self._resultOk)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue