mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
Add flushing close to places that deal with exceptions so that the order of lines in the output reflect the order of execution for the corresponding print statements. The actual buffering behavior differs depending on the Python interpreter version used, which led to spurious diffs with older versions. TN: W306-034
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
main.py: Starting...
|
|
|
|
== create context ==
|
|
|
|
MyEH: unit_parsed_callback
|
|
unit: <AnalysisUnit '__prelude'>
|
|
reparsed: False
|
|
|
|
== unit parsed ==
|
|
|
|
MyEH: unit_parsed_callback
|
|
unit: <AnalysisUnit 'main.txt'>
|
|
reparsed: False
|
|
|
|
MyEH: unit_parsed_callback
|
|
unit: <AnalysisUnit 'main.txt'>
|
|
reparsed: True
|
|
|
|
MyEH: unit_parsed_callback
|
|
Uncaught exception in EventHandler.unit_parsed_callback:
|
|
Traceback (most recent call last):
|
|
File ".../__init__.py", line XXX, in unit_parsed_func
|
|
<source code>
|
|
File "<string>", line XXX, in unit_parsed_callback
|
|
File "<string>", line XXX, in maybe_raise
|
|
ValueError: artificial exception
|
|
|
|
== unit requested ==
|
|
|
|
MyEH: unit_requested_callback
|
|
name: foo_1
|
|
from_unit: <AnalysisUnit 'main.txt'>
|
|
found: True
|
|
is_not_found_error: False
|
|
|
|
MyEH: unit_requested_callback
|
|
name: foo_2
|
|
from_unit: <AnalysisUnit 'main.txt'>
|
|
found: False
|
|
is_not_found_error: False
|
|
|
|
MyEH: unit_requested_callback
|
|
name: foo_3
|
|
from_unit: <AnalysisUnit 'main.txt'>
|
|
found: False
|
|
is_not_found_error: True
|
|
|
|
MyEH: unit_requested_callback
|
|
Uncaught exception in EventHandler.unit_requested_callback:
|
|
Traceback (most recent call last):
|
|
File ".../__init__.py", line XXX, in unit_requested_func
|
|
<source code>
|
|
File "<string>", line XXX, in unit_requested_callback
|
|
File "<string>", line XXX, in maybe_raise
|
|
ValueError: artificial exception
|
|
|
|
main.py: Done.
|
|
Done
|