aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_451.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/bug_451.py')
-rw-r--r--tests/QtDeclarative/bug_451.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtDeclarative/bug_451.py b/tests/QtDeclarative/bug_451.py
index 60e8dcce5..c75eaa763 100644
--- a/tests/QtDeclarative/bug_451.py
+++ b/tests/QtDeclarative/bug_451.py
@@ -42,7 +42,7 @@ class TestBug(unittest.TestCase):
obj = PythonObject()
context = view.rootContext()
context.setContextProperty("python", obj)
- view.setSource(adjust_filename('bug_451.qml', __file__))
+ view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('bug_451.qml', __file__)))
root = view.rootObject()
root.simpleFunction()
self.assertEqual(obj.called, "simpleFunction")