Fixed http test.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
7373ecb1c0
commit
d1ee964327
1 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,8 @@ class HttpSignalsCase(UsesQApplication):
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.httpd.shutdown()
|
self.httpd.shutdown()
|
||||||
del self.http
|
self.http = None
|
||||||
|
self.httpd = None
|
||||||
super(HttpSignalsCase, self).tearDown()
|
super(HttpSignalsCase, self).tearDown()
|
||||||
|
|
||||||
def callback(self, ident):
|
def callback(self, ident):
|
||||||
|
|
@ -32,7 +33,7 @@ class HttpSignalsCase(UsesQApplication):
|
||||||
def testDefaultArgs(self):
|
def testDefaultArgs(self):
|
||||||
#QHttp signal requestStarted signal
|
#QHttp signal requestStarted signal
|
||||||
# @bug 114
|
# @bug 114
|
||||||
QObject.connect(self.http, SIGNAL('requestStarted(int)'), self.callback)
|
self.http.requestStarted.connect(self.callback)
|
||||||
self.http.get(self.url.path())
|
self.http.get(self.url.path())
|
||||||
|
|
||||||
self.app.exec_()
|
self.app.exec_()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue