comment out compatproperty deprecations

todo: reenable in the features branch
This commit is contained in:
Ronny Pfannschmidt 2017-01-20 11:25:48 +01:00
parent 9c285dfc1d
commit 4082f4024a
1 changed files with 9 additions and 8 deletions

View File

@ -200,10 +200,11 @@ class _CompatProperty(object):
if obj is None:
return self
warnings.warn(
"usage of {owner!r}.{name} is deprecated, please use pytest.{name} instead".format(
name=self.name, owner=type(owner).__name__),
PendingDeprecationWarning, stacklevel=2)
# TODO: reenable in the features branch
# warnings.warn(
# "usage of {owner!r}.{name} is deprecated, please use pytest.{name} instead".format(
# name=self.name, owner=type(owner).__name__),
# PendingDeprecationWarning, stacklevel=2)
return getattr(pytest, self.name)
@ -291,10 +292,10 @@ class Node(object):
return getattr(pytest, name)
else:
cls = getattr(self, name)
warnings.warn("use of node.%s is deprecated, "
"use pytest_pycollect_makeitem(...) to create custom "
"collection nodes" % name, category=DeprecationWarning)
# TODO: reenable in the features branch
# warnings.warn("use of node.%s is deprecated, "
# "use pytest_pycollect_makeitem(...) to create custom "
# "collection nodes" % name, category=DeprecationWarning)
return cls
def __repr__(self):