summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-10-25 14:43:15 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-10-25 19:18:38 +0100
commit7030cd05de6444b19baedf1215b25c6202f5478c (patch)
tree04c3dec65d51dd6604c3efd6a498b65e10ea1597
parent5882b9671608a082454f07fccc9d01822382f8b4 (diff)
uitest: one more get_srcdir_url -> pathlib.Path
Change-Id: I9bba4252563deea089750fd6397585fc1d0a0acf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104775 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/uitest/writer_tests/versionDialog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/uitest/writer_tests/versionDialog.py b/sw/qa/uitest/writer_tests/versionDialog.py
index 6a97bfd20663..011d5398ce1d 100644
--- a/sw/qa/uitest/writer_tests/versionDialog.py
+++ b/sw/qa/uitest/writer_tests/versionDialog.py
@@ -8,12 +8,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.framework import UITestCase
-from uitest.path import get_srcdir_url
from uitest.uihelper.common import get_state_as_dict
+import org.libreoffice.unotest
+import pathlib
def get_url_for_data_file(file_name):
- return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name
-
+ return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class versionDialog(UITestCase):