class_docstr: Proxy for DocTestCase: provides an address() method that
  returns the correct address for the doctest case. Otherwise
  acts as a proxy to the test case. To provide hints for address(),
  an obj may also be passed -- this will be used as the test object
  for purposes of determining the test address, if it is provided.
docstr: Modified test setup that syncs with ipython namespace
docstr_tok: ["Modified","test","setup","that","syncs","with","ipython","namespace"]
code: def setUp(self):
      """Modified test setup that syncs with ipython namespace"""
      # print "setUp test", self._dt_test.examples # dbg
      if isinstance(self._dt_test.examples[0], IPExample):
          # for IPython examples *only*, we swap the globals with the ipython
          # namespace, after updating it with the globals (which doctest
          # fills with the necessary info from the module being tested).
          self.user_ns_orig = {}
          self.user_ns_orig.update(_ip.user_ns)
          _ip.user_ns.update(self._dt_test.globs)
          # We must remove the _ key in the namespace, so that Python's
          # doctest code sets it naturally
          _ip.user_ns.pop("_", None)
          _ip.user_ns["__builtins__"] = builtin_mod
          self._dt_test.globs = _ip.user_ns
  
      super(DocTestCase, self).setUp()
  
imports: import doctest
  import inspect
  import logging
  import os
  import re
  import sys
  from testpath import modified_env
  from inspect import getmodule
  from doctest import REPORTING_FLAGS, REPORT_ONLY_FIRST_FAILURE, _unittest_reportflags, DocTestRunner, _extract_future_flags, pdb, _OutputRedirectingPdb, _exception_traceback, linecache
  from nose.plugins import doctests, Plugin
  from nose.util import anyp, tolist
  from IPython.utils.py3compat import builtin_mod, PY3, getcwd
label_desc: Use image node_id 3 for calling the DocTestCase obj's underlying member method code with example usage: obj.setUp() without return types