From 3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Fri, 17 Dec 2010 15:30:18 -0200 Subject: Fix QML tests on Windows. --- tests/QtDeclarative/connect_python_qml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/QtDeclarative/connect_python_qml.py') diff --git a/tests/QtDeclarative/connect_python_qml.py b/tests/QtDeclarative/connect_python_qml.py index bb50515..e8180f7 100644 --- a/tests/QtDeclarative/connect_python_qml.py +++ b/tests/QtDeclarative/connect_python_qml.py @@ -16,7 +16,7 @@ class TestConnectionWithInvalidSignature(TimedQApplication): self.buttonClicked = False self.buttonFailClicked = False view = QtDeclarative.QDeclarativeView() - view.setSource(QtCore.QUrl(adjust_filename('connect_python_qml.qml', __file__))) + view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('connect_python_qml.qml', __file__))) root = view.rootObject() button = root.findChild(QtCore.QObject, "buttonMouseArea") self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('clicked()'), self.onButtonFailClicked]) -- cgit