Fix QML tests on Windows.

This commit is contained in:
Hugo Parente Lima 2010-12-17 15:30:18 -02:00
commit 5c7d93abed
3 changed files with 3 additions and 3 deletions

View file

@ -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")