Add compatproperty deprecation warning.
This commit is contained in:
parent
483754216f
commit
b38fad4b82
|
@ -190,7 +190,9 @@ class FSHookProxy:
|
|||
|
||||
def compatproperty(name):
|
||||
def fget(self):
|
||||
# deprecated - use pytest.name
|
||||
import warnings
|
||||
warnings.warn("compatproperty is deprecated. Use pytest.name",
|
||||
PendingDeprecationWarning, stacklevel=2)
|
||||
return getattr(pytest, name)
|
||||
|
||||
return property(fget)
|
||||
|
|
Loading…
Reference in New Issue