aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-13 17:25:57 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-16 10:48:42 -0300
commit1162a844bd689958205d10eeff549451ee8cb93b (patch)
tree658a8b19d5d531d2bb2cd73c7a4899d51ee13f7a /tests
parentc130273ee0fd41be0ed756a90ab8a24934ddb7e9 (diff)
Fixed Http test to work with Qt 4.7.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtNetwork/http_test.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/QtNetwork/http_test.py b/tests/QtNetwork/http_test.py
index 531316dae..ee6eeea2b 100644
--- a/tests/QtNetwork/http_test.py
+++ b/tests/QtNetwork/http_test.py
@@ -6,18 +6,17 @@ import unittest
from PySide.QtCore import *
from PySide.QtNetwork import *
-from helper import UsesQApplication
+from helper import UsesQCoreApplication
from httpd import TestServer
-class HttpSignalsCase(UsesQApplication):
+class HttpSignalsCase(UsesQCoreApplication):
'''Test case for launching QHttp signals'''
def setUp(self):
super(HttpSignalsCase, self).setUp()
- self.http = QHttp()
self.httpd = TestServer()
self.httpd.start()
- self.url = QUrl('localhost:' + str(self.httpd.port()))
+ self.http = QHttp('localhost' , self.httpd.port())
self.called = False
def tearDown(self):
@@ -34,8 +33,7 @@ class HttpSignalsCase(UsesQApplication):
#QHttp signal requestStarted signal
# @bug 114
self.http.requestStarted.connect(self.callback)
- self.http.get(self.url.path())
-
+ self.http.get("index.html")
self.app.exec_()
self.assert_(self.called)