From 5b81bd862c948160773e650d826feed8bb80420f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 30 Jan 2020 23:21:45 +0100 Subject: [PATCH] minor: doc: getfuncargnames: move TODO out of docstring --- src/_pytest/compat.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index f0b0d548f..085f634a4 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -143,12 +143,12 @@ def getfuncargnames( the case of cls, the function is a static method. The name parameter should be the original name in which the function was collected. - - @RonnyPfannschmidt: This function should be refactored when we - revisit fixtures. The fixture mechanism should ask the node for - the fixture names, and not try to obtain directly from the - function object well after collection has occurred. """ + # TODO(RonnyPfannschmidt): This function should be refactored when we + # revisit fixtures. The fixture mechanism should ask the node for + # the fixture names, and not try to obtain directly from the + # function object well after collection has occurred. + # The parameters attribute of a Signature object contains an # ordered mapping of parameter names to Parameter instances. This # creates a tuple of the names of the parameters that don't have