diff options
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/qa/pytests/insertremovecells.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |