loguru/tests/exceptions/output/modern/walrus_operator.txt

17 lines
918 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Traceback (most recent call last):
> File "tests/exceptions/source/modern/walrus_operator.py", line 25, in <module>
main()
└ <function main at 0xDEADBEEF>
File "tests/exceptions/source/modern/walrus_operator.py", line 19, in main
(walrus := foo())
 │ └ <function foo at 0xDEADBEEF>
 └ False
File "tests/exceptions/source/modern/walrus_operator.py", line 8, in foo
if a := "a" + (x:=1/0):
ZeroDivisionError: division by zero