def test_deprecated_call_pending(self): f = lambda: py.std.warnings.warn(PendingDeprecationWarning("hi")) pytest.deprecated_call(f)