From 3cfc26bc30e66ff21dc370c539e5223007b7b1ad Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Wed, 16 Mar 2022 14:32:58 +0000 Subject: [PATCH] Move low level static methods Like the non-static methods these are no longer present when using -builtin --- Examples/test-suite/python/autodoc_runme.py | 46 ++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Examples/test-suite/python/autodoc_runme.py b/Examples/test-suite/python/autodoc_runme.py index 960458584..18330f76f 100644 --- a/Examples/test-suite/python/autodoc_runme.py +++ b/Examples/test-suite/python/autodoc_runme.py @@ -63,12 +63,8 @@ check(inspect.getdoc(A.func3default), check(inspect.getdoc(A.func0static), "func0static(e, arg2, hello, f=2) -> int") -check(inspect.getdoc(_autodoc.A_func0static), - "A_func0static(e, arg2, hello, f=2) -> int") check(inspect.getdoc(A.func1static), "func1static(A e, short arg2, Tuple hello, double f=2) -> int") -check(inspect.getdoc(_autodoc.A_func1static), - "A_func1static(A e, short arg2, Tuple hello, double f=2) -> int") check(inspect.getdoc(A.func2static), "func2static(e, arg2, hello, f=2) -> int\n" "\n" @@ -78,15 +74,6 @@ check(inspect.getdoc(A.func2static), "arg2: short\n" "hello: int tuple[2]\n" "f: double") -check(inspect.getdoc(_autodoc.A_func2static), - "A_func2static(e, arg2, hello, f=2) -> int\n" - "\n" - "Parameters\n" - "----------\n" - "e: A *\n" - "arg2: short\n" - "hello: int tuple[2]\n" - "f: double") check(inspect.getdoc(A.func3static), "func3static(A e, short arg2, Tuple hello, double f=2) -> int\n" "\n" @@ -96,15 +83,6 @@ check(inspect.getdoc(A.func3static), "arg2: short\n" "hello: int tuple[2]\n" "f: double") -check(inspect.getdoc(_autodoc.A_func3static), - "A_func3static(A e, short arg2, Tuple hello, double f=2) -> int\n" - "\n" - "Parameters\n" - "----------\n" - "e: A *\n" - "arg2: short\n" - "hello: int tuple[2]\n" - "f: double") check(inspect.getdoc(A.variable_a), "variable_a" @@ -119,7 +97,7 @@ check(inspect.getdoc(A.variable_d), "variable_d : int" ) -# Check the low-level functions (not present when using -builtin except for the static ones) +# Check the low-level functions (not present when using -builtin) if not is_python_builtin(): check(inspect.getdoc(_autodoc.A_funk), "just a string.") check(inspect.getdoc(_autodoc.A_func0), @@ -162,6 +140,28 @@ if not is_python_builtin(): "arg3: short\n" "hello: int tuple[2]\n" "f: double") + check(inspect.getdoc(_autodoc.A_func0static), + "A_func0static(e, arg2, hello, f=2) -> int") + check(inspect.getdoc(_autodoc.A_func1static), + "A_func1static(A e, short arg2, Tuple hello, double f=2) -> int") + check(inspect.getdoc(_autodoc.A_func2static), + "A_func2static(e, arg2, hello, f=2) -> int\n" + "\n" + "Parameters\n" + "----------\n" + "e: A *\n" + "arg2: short\n" + "hello: int tuple[2]\n" + "f: double") + check(inspect.getdoc(_autodoc.A_func3static), + "A_func3static(A e, short arg2, Tuple hello, double f=2) -> int\n" + "\n" + "Parameters\n" + "----------\n" + "e: A *\n" + "arg2: short\n" + "hello: int tuple[2]\n" + "f: double") check(inspect.getdoc(_autodoc.A_variable_a_set), "A_variable_a_set(self, variable_a)") check(inspect.getdoc(_autodoc.A_variable_a_get), "A_variable_a_get(self) -> int" ) check(inspect.getdoc(_autodoc.A_variable_b_set), "A_variable_b_set(A self, int variable_b)")