diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-17 15:30:18 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-17 19:16:56 -0200 |
commit | 3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e (patch) | |
tree | fcfffdaaaea1ac56d37b0961a222a9f25899897a /tests/QtDeclarative/bug_451.py | |
parent | 53e472c5ef5423d51d008e13b81b351af6f07bf9 (diff) | |
download | pyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.tar.gz pyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.tar.xz pyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.zip |
Fix QML tests on Windows.
Diffstat (limited to 'tests/QtDeclarative/bug_451.py')
-rw-r--r-- | tests/QtDeclarative/bug_451.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtDeclarative/bug_451.py b/tests/QtDeclarative/bug_451.py index 60e8dcc..c75eaa7 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") |