diff --git a/test/test_api/test_classes.py b/test/test_api/test_classes.py index 9cea9cd9..46d362c1 100644 --- a/test/test_api/test_classes.py +++ b/test/test_api/test_classes.py @@ -150,6 +150,14 @@ def test_completion_docstring(): x'''), '' ) + # Should also not work if we rename something. + docstr(dedent(''' + def x(): + "hello" + y = x + y'''), + '' + ) def test_completion_params():