Skip to content

Commit 7e0c462

Browse files
committed
Show name argment in compatproperty deprecation message
1 parent c919ab6 commit 7e0c462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def __getattr__(self, name):
191191
def compatproperty(name):
192192
def fget(self):
193193
import warnings
194-
warnings.warn("compatproperty is deprecated. Use pytest.name",
194+
warnings.warn("This usage is deprecated, please use pytest.{0} instead".format(name),
195195
PendingDeprecationWarning, stacklevel=2)
196196
return getattr(pytest, name)
197197

0 commit comments

Comments
 (0)