Hello Edward,

Edward K. Ream schrieb am Freitag, 9. Juni 2023 um 20:04:31 UTC+2:

PR #3367 <https://github.com/leo-editor/leo-editor/pull/3367> imports 
Callable from collections.abc instead of typing.  typing.Callable is 
deprecated, but is not presently scheduled for removal. Nevertheless I 
thought it best to do the replacement.

To my knowledge no further changes to Leo's mypy-related code are needed.

Please report any problems.


 I've tested the 'leo-editor:devel' branch in a Fedora 37 VM.

Running Leo's unit tests reports two errors:

::

    (Leo) [user@fedora-leo-study-vm Leo]$ 
    (Leo) [user@fedora-leo-study-vm Leo]$ cd leo-editor/leo
    (Leo) [user@fedora-leo-study-vm leo]$ python -m unittest
    
................................................................................
    
................................................................................
    
................................................................................
    
................................................................................
    ..........................................Missing visitor: 
TokenOrderGenerator.TryStar
    
F......F........................................................................
    
................................................................................
    
................................................................................
    
.................................................................s..............
    ..........................................................
    (python:1814): Gdk-CRITICAL **: 07:30:49.345: gdk_atom_intern: 
assertion 'atom_name != NULL' failed

    (python:1814): Gdk-CRITICAL **: 07:30:49.345: gdk_atom_intern: 
assertion 'atom_name != NULL' failed
    
.........s......................................................................
    ..................cursesGui2.py: Tk module required for clipboard 
handling.
    s.........
    ======================================================================
    FAIL: test_visitors_exist 
(unittests.core.test_leoAst.TestTokens.test_visitors_exist)
    Ensure that visitors for all ast nodes exist.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/core/test_leoAst.py", 
line 2745, in test_visitors_exist
        assert not errors, msg
    AssertionError: 63 node types, 32 op types, 1 errors

    ======================================================================
    FAIL: test_bug_3270_at_path 
(unittests.core.test_leoAtFile.TestAtFile.test_bug_3270_at_path)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/core/test_leoAtFile.py", 
line 102, in test_bug_3270_at_path
        self.assertEqual(path, expected)
    AssertionError: 
'/home/user/PyVE/GitHub/Leo/leo-editor/leo/core/c:/temp/leo/at_file_test.py' 
!= 'c:/temp/leo/at_file_test.py'
    - 
/home/user/PyVE/GitHub/Leo/leo-editor/leo/core/c:/temp/leo/at_file_test.py
    + c:/temp/leo/at_file_test.py


    ----------------------------------------------------------------------
    Ran 848 tests in 5.994s

    FAILED (failures=2, skipped=3)
    (Leo) [user@fedora-leo-study-vm leo]$ 

Leo's unit tests should not make the assumption, that everyone is running 
them on Windows ;-)

With kind regards,

Viktor

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2bbe94a2-b136-4f94-9db3-95ff9a970623n%40googlegroups.com.

Reply via email to