mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
(cherry picked from commit 202d5a6aadd282fb5144d16039e5661c22d567ec) GitOrigin-RevId: c290897d0eff63f4e4192d7368c272e9a4e73ba8
11 lines
192 B
Python
11 lines
192 B
Python
import pytest
|
|
|
|
|
|
def test_recursion_depth():
|
|
with pytest.raises(RuntimeError) as excinfo:
|
|
def f():
|
|
f()
|
|
|
|
f()
|
|
assert "maximum recursion" in str(excinfo.value)
|