diff --git a/tests/system/suite_editors/tst_modify_readonly/test.py b/tests/system/suite_editors/tst_modify_readonly/test.py index d31b244b0c0..11a29a5c728 100644 --- a/tests/system/suite_editors/tst_modify_readonly/test.py +++ b/tests/system/suite_editors/tst_modify_readonly/test.py @@ -103,8 +103,8 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles): try: filesTree = waitForObject("{name='treeWidget' type='QTreeWidget' visible='1' " "window=':WritePermissions_Core::Internal::ReadOnlyFilesDialog'}") - items = map(os.path.join, dumpItems(filesTree.model(), column=4), - dumpItems(filesTree.model(), column=3)) + items = map(os.path.expanduser, map(os.path.join, dumpItems(filesTree.model(), column=4), + dumpItems(filesTree.model(), column=3))) difference = set(readOnlyFiles) ^ set(items) test.verify(len(difference) == 0, "Verifying whether all modified files without write " "permission are listed.")