Skip to content

Commit ce3e2be

Browse files
committed
XFail the test in Python 3.9
1 parent e4c7368 commit ce3e2be

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_line_profiler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,12 +1028,19 @@ def func(n):
10281028
assert loop_body.split()[1] == str(count)
10291029

10301030

1031+
@pytest.mark.xfail(condition=sys.version_info[:2] == (3, 9),
1032+
reason='Handling of `finally` bugged in Python 3.9')
10311033
def test_profiling_exception():
10321034
"""
10331035
Test that profiling data is reported for:
10341036
- The line raising an exception
10351037
- The last lines in the `except` and `finally` subblocks of a
10361038
`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.
10371044
"""
10381045
prof = LineProfiler()
10391046

0 commit comments

Comments
 (0)