Skip to content

Commit

Permalink
Show name argment in compatproperty deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
nmundar authored and nicoddemus committed Nov 27, 2016
1 parent 0e6ad8e commit 0a30f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def __getattr__(self, name):
def compatproperty(name):
def fget(self):
import warnings
warnings.warn("compatproperty is deprecated. Use pytest.name",
warnings.warn("This usage is deprecated, please use pytest.{0} instead".format(name),
PendingDeprecationWarning, stacklevel=2)
return getattr(pytest, name)

Expand Down

0 comments on commit 0a30f07

Please sign in to comment.