summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-01-03 16:38:30 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-01-03 19:46:41 -0300
commitda1759fe989118d5fa746353bebc22990099e7bb (patch)
tree91bc25207e6c4ba13ba37ccc436aca87d94433fa
parent39a5a09145133871dec87cbd11766824f9e4c5a3 (diff)
downloadpyside-da1759fe989118d5fa746353bebc22990099e7bb.tar.gz
pyside-da1759fe989118d5fa746353bebc22990099e7bb.tar.xz
pyside-da1759fe989118d5fa746353bebc22990099e7bb.zip
Added test case for Bug #572.
Bug #572: Giving unicode value as 'body' argument to WebView's load method crashes python. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--tests/QtWebKit/webview_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/QtWebKit/webview_test.py b/tests/QtWebKit/webview_test.py
index a6a40fd..ab81a30 100644
--- a/tests/QtWebKit/webview_test.py
+++ b/tests/QtWebKit/webview_test.py
@@ -6,6 +6,7 @@ import sys
from PySide.QtCore import QObject, SIGNAL, QUrl
from PySide.QtWebKit import *
+from PySide.QtNetwork import QNetworkRequest
from helper import adjust_filename, TimedQApplication
@@ -61,5 +62,8 @@ class TestLoadFinished(TimedQApplication):
if ok:
self.called = True
+ def testNamedArgumentTypeChecking(self):
+ self.assertRaises(TypeError, self.view.load, QNetworkRequest(), body=unicode('foo'))
+
if __name__ == '__main__':
unittest.main()