The tests results in fail because of a try except else inside a with statement, but anyway as you can see this error exists in 3.4 also (before WITH_CLEANUP_START), so it doesn't related to the handle of the with statement, only the try-except-else.
*** test_with: FAIL (2 of 2) + XFAIL (1)
test_with.3.4.pyc
tests/test_with.3.4.pyc.tok.txt does not match /mnt/c/Users/MrDakik/Downloads/pycdc_contrib/tests/tokenized/test_with.txt:
--- /mnt/c/Users/MrDakik/Downloads/pycdc_contrib/tests/tokenized/test_with.txt 2024-02-26 16:32:22.448784400 +0200
+++ tests/test_with.3.4.pyc.tok.txt 2024-02-27 10:50:02.996121800 +0200
@@ -46,6 +46,4 @@
<INDENT>
result = 'exception' <EOL>
<OUTDENT>
-else : <EOL>
-<INDENT>
result += '
' <EOL>
test_with.3.5.pyc
tests/test_with.3.5.pyc.tok.txt does not match /mnt/c/Users/MrDakik/Downloads/pycdc_contrib/tests/tokenized/test_with.txt:
--- /mnt/c/Users/MrDakik/Downloads/pycdc_contrib/tests/tokenized/test_with.txt 2024-02-26 16:32:22.448784400 +0200
+++ tests/test_with.3.5.pyc.tok.txt 2024-02-27 10:50:03.221916200 +0200
@@ -46,6 +46,4 @@
<INDENT>
result = 'exception' <EOL>
<OUTDENT>
-else : <EOL>
-<INDENT>
result += '
' <EOL>
WITH_CLEANUP_START
is likeWITH_CLEANUP
.WITH_CLEANUP_FINISH
we can ignore.The tests results in fail because of a try except else inside a with statement, but anyway as you can see this error exists in 3.4 also (before
WITH_CLEANUP_START
), so it doesn't related to the handle of the with statement, only the try-except-else.I also checked and source of:
results in:
so we need to fix this anyways :) .