back, on windows I tried with python 3.9.6, this gives me a single test
fail:
======================================================================
FAIL: test_TryStar (leo.unittests.core.test_leoAst.TestTOG)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\prog\leo-editor\leo\unittests\core\test_leoAst.py", line 1138,
in test_TryStar
self.make_data(contents)
File "C:\prog\leo-editor\leo\unittests\core\test_leoAst.py", line 181, in
make_data
self.fail('make_tree failed') # pragma: no cover
AssertionError: make_tree failed
----------------------------------------------------------------------
Ran 853 tests in 17.075s
FAILED (failures=1, skipped=20)
parse_ast: Syntax Error
[
0: 'try:\n'
1: " print('a1')\n"
2: " print('a2')\n"
3: 'except* ImportError:\n'
4: " print('b1')\n"
5: " print('b2')\n"
6: 'except* SyntaxError:\n'
7: " print('c1')\n"
8: " print('c2')\n"
9: 'else:\n'
10: " print('d1')\n"
11: 'finally:\n'
12: " print('e1')\n"
13: " print('e2')\n"
]
On Sunday, June 18, 2023 at 11:43:52 PM UTC-4 Félix wrote:
> I pulled latest devel on my *windows* 10 machine, All tests pass on*
> python 3.11.*
>
> I then pulled the latest devel on my *linux* machine. tested in *python
> 3.9 and 3.10.* they both give the same two failed tests:
> ======================================================================
> FAIL: test_TryStar (leo.unittests.core.test_leoAst.TestTOG)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/felix/leo-editor/leo/unittests/core/test_leoAst.py", line
> 1138, in test_TryStar
> self.make_data(contents)
> File "/home/felix/leo-editor/leo/unittests/core/test_leoAst.py", line
> 181, in make_data
> self.fail('make_tree failed') # pragma: no cover
> AssertionError: make_tree failed
>
> ======================================================================
> FAIL: test_recursive_import
> (leo.unittests.core.test_leoImport.TestLeoImport)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/felix/leo-editor/leo/unittests/core/test_leoImport.py", line
> 105, in test_recursive_import
> x.minimize_headline(root)
> File "/home/felix/leo-editor/leo/core/leoImport.py", line 1785, in
> minimize_headline
> assert os.path.isabs(self.root_directory)
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 853 tests in 6.481s
>
> FAILED (failures=2, skipped=18)
>
> (I'll report in a few minutes for results of testing on my other windows
> machine which has python 3.9 and 3.10.)
>
> On Sunday, June 18, 2023 at 10:35:18 PM UTC-4 [email protected] wrote:
>
>> Python 3.10 on Ubuntu:
>>
>> =============================== 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_leoAst.py::TestTOG::test_TryStar -
>> AssertionError: make_tree failed
>>
>> FAILED
>> leo/unittests/core/test_leoImport.py::TestLeoImport::test_recursive_import
>> - AssertionError
>>
>> ============= 2 failed, 850 passed, 1 skipped, 1 warning in 11.32s
>> =============
>>
>> Leo 6.7.4-devel, tbp-tree branch, build e58396da1b
>>
>> 2023-06-18 18:19:34 -0500
>> Python 3.10.6, PyQt version 6.3.2
>> linux
>>
>>
--
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/3a730c6d-816f-45b5-a3bc-fb91473286e3n%40googlegroups.com.