Fix QML tests on Windows.
This commit is contained in:
parent
58d43d6de9
commit
5c7d93abed
3 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue