diff --git a/python/tests/test_util.py b/python/tests/test_util.py index b9964c1c1..1c765727c 100644 --- a/python/tests/test_util.py +++ b/python/tests/test_util.py @@ -264,7 +264,8 @@ p2 : str, optional p1 description Remaining description\n""" - assert util._docstringer(test_docstring,adopted_parameters) ==\ + res = util._docstringer(test_docstring,adopted_parameters) + assert res ==\ """ Function description. @@ -316,7 +317,8 @@ p2 : str, optional """ pass - assert (test_docstring:=util._docstringer(test_docstring,adopted_references = testfunction_1)) == \ + test_docstring = util._docstringer(test_docstring,adopted_references = testfunction_1) + assert test_docstring == \ """ Function description. @@ -331,7 +333,8 @@ p2 : str, optional Reference 2 \n""" - assert (test_docstring:=util._docstringer(test_docstring,adopted_notes = testfunction_1)) == \ + test_docstring = util._docstringer(test_docstring,adopted_notes = testfunction_1) + assert test_docstring == \ """ Function description. @@ -362,8 +365,8 @@ p2 : str, optional """ - - assert (test_docstring:=util._docstringer(test_docstring,adopted_references = testfunction_2)) == \ + test_docstring = util._docstringer(test_docstring,adopted_references = testfunction_2) + assert test_docstring == \ """ Function description.