Hello Edward,

Edward K. Ream schrieb am Dienstag, 21. Mai 2024 um 14:07:12 UTC+2:

PR #3922 <https://github.com/leo-editor/leo-editor/pull/3922> significantly 
improves Leo's restart-leo command. The command now uses the command-line 
arguments in effect when Leo started.

I have tested the latest version of Leo's devel branch in a dedicated 
Debian & Fedora VM.

The command is working fine in both !

However & FYI: When I run Leo's unit tests in both VMs I receive 43 
identical / similar errors:


   - See "Log-001" for UT @ Debian & "Log-002" for UT @ Fedora


With kind regards,

Viktor

### Log-001

    (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ 
    (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ cd leo
    (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor/leo$ 
    (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor/leo$ 
python3 -m unittest
    EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
    ======================================================================
    ERROR: external.npyscreen 
(unittest.loader._FailedTest.external.npyscreen)
    ----------------------------------------------------------------------
    ImportError: Failed to import test module: external.npyscreen
    Traceback (most recent call last):
      File "/usr/lib/python3.11/unittest/loader.py", line 440, in 
_find_test_path
        package = self._get_module_from_name(name)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/unittest/loader.py", line 350, in 
_get_module_from_name
        __import__(name)
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/external/npyscreen/__init__.py", 
line 8, in <module>
        from .wgwidget                  import TEST_SETTINGS, 
ExhaustedTestInput, add_test_input_from_iterable, add_test_input_ch
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/external/npyscreen/wgwidget.py", 
line 21, in <module>
        from leo.core import leoGlobals as g
    ModuleNotFoundError: No module named 'leo'

    < content deleted >

    ----------------------------------------------------------------------
    Ran 43 tests in 0.003s

    FAILED (errors=43)
    (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor/leo$ 

### Log-002

    (Leo) [user@fedora-leo-study-vm leo-editor]$ 
    (Leo) [user@fedora-leo-study-vm leo-editor]$ cd leo
    (Leo) [user@fedora-leo-study-vm leo]$ 
    (Leo) [user@fedora-leo-study-vm leo]$ python -m unittest
    EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
    ======================================================================
    ERROR: external.npyscreen 
(unittest.loader._FailedTest.external.npyscreen)
    ----------------------------------------------------------------------
    ImportError: Failed to import test module: external.npyscreen
    Traceback (most recent call last):
      File "/usr/lib64/python3.12/unittest/loader.py", line 427, in 
_find_test_path
        package = self._get_module_from_name(name)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
        __import__(name)
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/external/npyscreen/__init__.py", 
line 8, in <module>
        from .wgwidget                  import TEST_SETTINGS, 
ExhaustedTestInput, add_test_input_from_iterable, add_test_input_ch
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/external/npyscreen/wgwidget.py", 
line 21, in <module>
        from leo.core import leoGlobals as g
    ModuleNotFoundError: No module named 'leo'

    < content deleted >

    ----------------------------------------------------------------------
    Ran 43 tests in 0.002s

    FAILED (errors=43)
    (Leo) [user@fedora-leo-study-vm leo]$ 

 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/459f41d5-28c7-4152-99dc-d17d87e941cbn%40googlegroups.com.

Reply via email to