Remove nodeid from messages for warnings generated by standard warnings
Standard warnings already contain the proper location, so we don't need to also print the node id
This commit is contained in:
@@ -258,12 +258,11 @@ def record_property(request):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def record_xml_property(record_property):
|
||||
def record_xml_property(record_property, request):
|
||||
"""(Deprecated) use record_property."""
|
||||
import warnings
|
||||
from _pytest import deprecated
|
||||
|
||||
warnings.warn(deprecated.RECORD_XML_PROPERTY, DeprecationWarning, stacklevel=2)
|
||||
request.node.std_warn(deprecated.RECORD_XML_PROPERTY, DeprecationWarning)
|
||||
|
||||
return record_property
|
||||
|
||||
|
||||
Reference in New Issue
Block a user