From d76281864b0e83812c0edf7490b1e8271e89fff5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Mar 2018 18:35:54 +0200 Subject: Create temp copies of test docs in Python/UITests ...where necessary, so the tests will succeed if SRCDIR is a read-only tree. Change-Id: Iea4c52d5982d3eba079088ef1670ff557ce30c3f Reviewed-on: https://gerrit.libreoffice.org/52122 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- pyuno/qa/pytests/insertremovecells.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyuno/qa') diff --git a/pyuno/qa/pytests/insertremovecells.py b/pyuno/qa/pytests/insertremovecells.py index 0d7979c4c8d1..e14717639d7e 100644 --- a/pyuno/qa/pytests/insertremovecells.py +++ b/pyuno/qa/pytests/insertremovecells.py @@ -9,7 +9,7 @@ try: except ImportError: from urllib import pathname2url -from org.libreoffice.unotest import pyuno, mkPropertyValue +from org.libreoffice.unotest import pyuno, mkPropertyValue, makeCopyFromTDOC class InsertRemoveCells(unittest.TestCase): @@ -29,8 +29,7 @@ class InsertRemoveCells(unittest.TestCase): ('Hidden', True), ('ReadOnly', False) )) - tdoc_dir = getenv('TDOC') - tdoc_path = pathname2url(path.join(tdoc_dir, 'fdo74824.ods')) + tdoc_path = pathname2url(makeCopyFromTDOC('fdo74824.ods')) if platform.system() == 'Windows': tdoc_path = re.sub(r'^//(/[A-Za-z]:/)/', r'\1', tdoc_path) url = 'file://' + tdoc_path -- cgit