Got some errors on XUbuntu/Python 3.11:

=================================== FAILURES 
===================================
____________ TestTokenBasedOrange.test_blank_lines_after_function_3 
____________

self = <leo.unittests.core.test_leoTokens.TestTokenBasedOrange 
testMethod=test_blank_lines_after_function_3>

    def test_blank_lines_after_function_3(self):
    
        # From leoAtFile.py.
        contents = r"""\
    def writeAsisNode(self, p):
        print('1')
    
        def put(s):
            print('2')
    
        # Trailing comment 1.
        # Trailing comment 2.
        print('3')
    """
        contents, tokens = self.make_data(contents)
        expected = contents
        results = self.beautify(contents, tokens)
>       self.assertEqual(results, expected)
E       AssertionError: "\\\n[122 chars]omment 1.\n        # Trailing 
comment 2.\n    print('3')\n" != "\\\n[122 chars]omment 1.\n        # 
Trailing comment 2.\n        print('3')\n"
E         \
E             def writeAsisNode(self, p):
E                 print('1')
E         
E                 def put(s):
E                     print('2')
E         
E                 # Trailing comment 1.
E                 # Trailing comment 2.
E       -     print('3')
E       +         print('3')
E       ? ++++

leo/unittests/core/test_leoTokens.py:327: AssertionError
=============================== warnings summary 
===============================
leo/plugins/leo_babel/tests/lib_test.py:118
  /home/tom/git/leo-editor/leo/plugins/leo_babel/tests/lib_test.py:118: 
PytestCollectionWarning: cannot collect test class 'TestCmdr' because it 
has a __init__ constructor (from: leo/plugins/leo_babel/tests/lib_test.py)
    class TestCmdr:

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info 
============================
FAILED 
leo/unittests/core/test_leoTokens.py::TestTokenBasedOrange::test_blank_lines_after_function_3
 
- AssertionError: "\\\n[122 chars]omment 1.\n        # Trailing comment 
2.\n ...
============= 1 failed, 904 passed, 26 skipped, 1 warning in 9.32s 
============

On Saturday, February 3, 2024 at 10:00:57 AM UTC-5 Thomas Passin wrote:

> On Windows 10, Python 3.12 -
>
> ============================ warnings summary ============================
> leo\plugins\leo_babel\tests\lib_test.py:118
>   C:\Tom\git\leo-editor\leo\plugins\leo_babel\tests\lib_test.py:118: 
> PytestCollectionWarning: cannot collect test class 'TestCmdr' because it 
> has a __init__ constructor (from: leo/plugins/leo_babel/tests/lib_test.py)
>     class TestCmdr:
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =============== 929 passed, 2 skipped, 1 warning in 22.81s ===============
>
> Leo 6.7.8-devel, devel branch, build fb38e0c603
> 2024-02-01 17:16:21 -0600
> Python 3.12.0, PyQt version 5.15.2
> Windows 10 AMD64 (build 10.0.19045) SP0
> On Saturday, February 3, 2024 at 6:05:52 AM UTC-5 [email protected] 
> wrote:
>
>> Hello Edward,
>>
>> Edward K. Ream schrieb am Freitag, 2. Februar 2024 um 11:15:08 UTC+1:
>>
>> PR #3774 <https://github.com/leo-editor/leo-editor/pull/3774> is now in 
>> devel. This PR cleans up Leo's unit tests and fixes a crasher in Leo's new 
>> beautifier.
>>
>> The only remaining issue is #3767 
>> <https://github.com/leo-editor/leo-editor/issues/3767>: Distribute Leo 
>> only on GitHub. The corresponding PR is a work in progress. I'll say more 
>> about this issue in another post.
>>
>> *Summary*
>>
>> Please test devel and report any problems immediately. 
>>
>> The only remaining changes for 6.7.8 concern distribution.
>>
>> I'll alert you when the new distribution model is ready for testing.
>>
>>
>> I tested the latest version of Leo's devel branch inside a Fedora 38 VM
>>
>> Running the unit tests reveals the following error:
>>
>>     ======================================================================
>>     FAIL: test_blank_lines_after_function_3 
>> (unittests.core.test_leoTokens.TestTokenBasedOrange.test_blank_lines_after_function_3)
>>     ----------------------------------------------------------------------
>>     Traceback (most recent call last):
>>       File 
>> "/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/core/test_leoTokens.py",
>>  
>> line 327, in test_blank_lines_after_function_3
>>         self.assertEqual(results, expected)
>>     AssertionError: "\\\n[122 chars]omment 1.\n        # Trailing comment 
>> 2.\n    print('3')\n" != "\\\n[122 chars]omment 1.\n        # Trailing 
>> comment 2.\n        print('3')\n"
>>       \
>>           def writeAsisNode(self, p):
>>               print('1')
>>
>>               def put(s):
>>                   print('2')
>>
>>               # Trailing comment 1.
>>               # Trailing comment 2.
>>     -     print('3')
>>     +         print('3')
>>     ? ++++
>>
>>
>>     ----------------------------------------------------------------------
>>     Ran 931 tests in 7.797s
>>
>>     FAILED (failures=1, skipped=5)
>>     (Leo) [user@fedora-leo-study-vm leo]$ 
>>
>>
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/aa596565-11b7-4fbf-93e5-8cef74df05ddn%40googlegroups.com.

Reply via email to