We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4c7368 commit ce3e2beCopy full SHA for ce3e2be
1 file changed
tests/test_line_profiler.py
@@ -1028,12 +1028,19 @@ def func(n):
1028
assert loop_body.split()[1] == str(count)
1029
1030
1031
+@pytest.mark.xfail(condition=sys.version_info[:2] == (3, 9),
1032
+ reason='Handling of `finally` bugged in Python 3.9')
1033
def test_profiling_exception():
1034
"""
1035
Test that profiling data is reported for:
1036
- The line raising an exception
1037
- The last lines in the `except` and `finally` subblocks of a
1038
`try`-(`except`-)`finally` statement
1039
+
1040
+ Notes
1041
+ -----
1042
+ Seems to be bugged for Python 3.9 only; may be related to CPython
1043
+ issue #83295.
1044
1045
prof = LineProfiler()
1046
0 commit comments