diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-10-23 13:46:56 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-10-25 14:17:37 +0100 |
commit | a77e2ded1298fa64592c5e26345fd024ca7601fb (patch) | |
tree | 522c6fd5c1f40817e3fb504007bdef39648fa82d /sw/qa/uitest/table/tdf135693.py | |
parent | 2e619846cfe620826d3d77e4551a9af917cf96d9 (diff) |
uitest: sw: get_url_for_data_file -> pathlib.Path
Change-Id: I9abfeabe8d86bee3f3724356e2d174d7839ab09d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104725
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/table/tdf135693.py')
-rw-r--r-- | sw/qa/uitest/table/tdf135693.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/uitest/table/tdf135693.py b/sw/qa/uitest/table/tdf135693.py index 31a6a176bb00..d25f396dc91f 100644 --- a/sw/qa/uitest/table/tdf135693.py +++ b/sw/qa/uitest/table/tdf135693.py @@ -1,12 +1,13 @@ # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- from uitest.framework import UITestCase -from uitest.path import get_srcdir_url from uitest.uihelper.common import select_pos 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 tdf135693(UITestCase): |