[Libreoffice-bugs] [Bug 131835] New: librelogo UITest fails with python3.8

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 2 20:45:29 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131835

            Bug ID: 131835
           Summary: librelogo UITest fails with python3.8
           Product: LibreOffice
           Version: 7.0.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rene at debian.org

since
https://cgit.freedesktop.org/libreoffice/core/commit/?id=8ea5a522f76dd089446e901f3cd324f98cd973e7https://cgit.freedesktop.org/libreoffice/core/commit/?id=8ea5a522f76dd089446e901f3cd324f98cd973e7
(I guess) the following happens because the test throws a warning:

[build UIT] librelogo
S=/home/rene/LibreOffice/git/master && I=$S/instdir && W=$S/workdir &&  rm -rf
$W/UITest/librelogo/ && mkdir -p $W/UITest/librelogo//user/user && cp
$S/qadevOOo/qa/registrymodifications.xcu $W/UITest/librelogo//user/user/ &&  rm
-fr $W/UITest/librelogo/done.core && mkdir -p $W/UITest/librelogo/user/ &&
mkdir $W/UITest/librelogo/done.core && cd $W/UITest/librelogo/done.core &&   ( 
 TDOC="$S/sw/qa/uitest/writer_tests/data"  
TEST_LIB=$W/LinkTarget/Library/libtest.so
URE_BOOTSTRAP=vnd.sun.star.pathname:$I/program/fundamentalrc
PYTHONPATH="$S/uitest:$S/unotest/source/python:$I/program:$S/sw/qa/uitest/librelogo/"
TestUserDir="file://$W/UITest/librelogo/" PYTHONDONTWRITEBYTECODE=0
PYTHONWARNINGS=error MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=
SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C  
/usr/bin/python3 $S/uitest/test_main.py --soffice="path:$I/program/soffice"
--userdir=file://$W/UITest/librelogo/user --dir=$S/sw/qa/uitest/librelogo/ 
2>&1)
False
test_librelogo (run.LibreLogoTest) ... OfficeConnection: connecting to:
uno:pipe,name=pytest027c5cb0-7518-11ea-b079-2016b9f1e514;urp;StarOffice.ComponentContext
NoConnectException: sleeping...
['OnNew']
OnCreate
['OnNew']
OnStorageChanged
['OnNew']
OnTitleChanged
['OnNew']
OnFocus
['OnNew']
OnViewCreated
['OnNew']
OnPageCountChange
['OnNew']
OnLayoutFinished
1
Execution time for run.LibreLogoTest.test_librelogo: 0.417
tearDown: calling terminate()...
...done
ERROR
test_compile_librelogo (compile.LibreLogoCompileTest) ... OfficeConnection:
connecting to:
uno:pipe,name=pytest03737748-7518-11ea-b079-2016b9f1e514;urp;StarOffice.ComponentContext
NoConnectException: sleeping...
Execution time for compile.LibreLogoCompileTest.test_compile_librelogo: 0.050
close
tearDown: calling terminate()...
...done
ERROR

======================================================================
ERROR: test_librelogo (run.LibreLogoTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rene/LibreOffice/git/master/sw/qa/uitest/librelogo/run.py", line
42, in test_librelogo
    xIsAlive = self.getScript("__is_alive__")
  File "/home/rene/LibreOffice/git/master/sw/qa/uitest/librelogo/run.py", line
29, in getScript
    xScript = xScriptProvider.getScript(self.LIBRELOGO_PATH %command)
run.com.sun.star.script.provider.ScriptFrameworkErrorException:
ProviderCache::createProvider() Error creating provider from factory.
python-loader:<class 'DeprecationWarning'>: the imp module is deprecated in
favour of importlib; see the module's documentation for alternative uses,
traceback follows
  File "/home/rene/LibreOffice/git/master/instdir/program/pythonloader.py",
line 22, in <module>
    import imp
  File "/home/rene/LibreOffice/git/master/instdir/program/uno.py", line 356, in
_uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/python3.8/imp.py", line 31, in <module>
    warnings.warn("the imp module is deprecated in favour of importlib; "



======================================================================
ERROR: test_compile_librelogo (compile.LibreLogoCompileTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rene/LibreOffice/git/master/sw/qa/uitest/librelogo/compile.py",
line 36, in test_compile_librelogo
    xCompile = self.getScript("__compil__")
  File "/home/rene/LibreOffice/git/master/sw/qa/uitest/librelogo/compile.py",
line 30, in getScript
    xScript = xScriptProvider.getScript(self.LIBRELOGO_PATH %command)
run.com.sun.star.script.provider.ScriptFrameworkErrorException:
ProviderCache::createProvider() Error creating provider from factory.
python-loader:<class 'DeprecationWarning'>: the imp module is deprecated in
favour of importlib; see the module's documentation for alternative uses,
traceback follows
  File "/home/rene/LibreOffice/git/master/instdir/program/pythonloader.py",
line 22, in <module>
    import imp
  File "/home/rene/LibreOffice/git/master/instdir/program/uno.py", line 356, in
_uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/python3.8/imp.py", line 31, in <module>
    warnings.warn("the imp module is deprecated in favour of importlib; "



----------------------------------------------------------------------
Ran 2 tests in 2.755s

FAILED (errors=2)
Tests run: 2
Tests failed: 0
Tests errors: 2
Tests skipped: 0

This is

rene at frodo:~/LibreOffice/git/master$ python3 --version
Python 3.8.2
rene at frodo:~/LibreOffice/git/master$

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200402/c63b0c75/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list