class_docstr: Object returned by the ``monkeypatch`` fixture keeping a record of setattr/item/env/syspath changes.
      
class_docstr_tok: ["Object","returned","by","the","``","monkeypatch","``","fixture","keeping","a","record","of","setattr\/item\/env\/syspath","changes","."]
docstr: Delete attribute ``name`` from ``target``, by default raise
  AttributeError it the attribute did not previously exist.
  
  If no ``name`` is specified and ``target`` is a string
  it will be interpreted as a dotted import path with the
  last part being the attribute name.
  
  If ``raising`` is set to False, no exception will be raised if the
  attribute is missing.
docstr_tok: ["Delete","attribute","``","name","``","from","``","target","``",",","by","default","raise","AttributeError","it","the","attribute","did","not","previously","exist",".","If","no","``","name","``","is","specified","and","``","target","``","is","a","string","it","will","be","interpreted","as","a","dotted","import","path","with","the","last","part","being","the","attribute","name",".","If","``","raising","``","is","set","to","False",",","no","exception","will","be","raised","if","the","attribute","is","missing","."]
code: def delattr(self, target, name=notset, raising=True):
      """Delete attribute ``name`` from ``target``, by default raise
      AttributeError it the attribute did not previously exist.
  
      If no ``name`` is specified and ``target`` is a string
      it will be interpreted as a dotted import path with the
      last part being the attribute name.
  
      If ``raising`` is set to False, no exception will be raised if the
      attribute is missing.
      """
      __tracebackhide__ = True
      import inspect
  
      if name is notset:
          if not isinstance(target, six.string_types):
              raise TypeError(
                  "use delattr(target, name) or "
                  "delattr(target) with target being a dotted "
                  "import string"
              )
          name, target = derive_importpath(target, raising)
  
      if not hasattr(target, name):
          if raising:
              raise AttributeError(name)
      else:
          oldval = getattr(target, name, notset)
          # Avoid class descriptors like staticmethod/classmethod.
          if inspect.isclass(target):
              oldval = target.__dict__.get(name, notset)
          self._setattr.append((target, name, oldval))
          delattr(target, name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import re
  import sys
  import warnings
  from contextlib import contextmanager
  import six
  import pytest
  from _pytest.fixtures import fixture
  from _pytest.pathlib import Path
label_desc: Use image node_id 4 for calling the MonkeyPatch obj's underlying member method code with example usage: obj.delattr(target, name, raising) without return types