code: def test_doctest_main_issue4197(self):
      test_src = textwrap.dedent(
          """\
                      class Test:
                          ">>> 'line 2'"
                          pass
  
                      import doctest
                      doctest.testmod()
                      """
      )
      pattern = 'File "%s", line 2, in %s'
      with os_helper.temp_dir() as d:
          script_name = make_script(d, "script", test_src)
          rc, out, err = assert_python_ok(script_name)
          expected = pattern % (script_name, "__main__.Test")
          if verbose:
              print("Expected line", expected)
              print("Got stdout:")
              print(ascii(out))
          self.assertIn(expected.encode("utf-8"), out)
          zip_name, run_name = make_zip_script(
              d, "test_zip", script_name, "__main__.py"
          )
          rc, out, err = assert_python_ok(zip_name)
          expected = pattern % (run_name, "__main__.Test")
          if verbose:
              print("Expected line", expected)
              print("Got stdout:")
              print(ascii(out))
          self.assertIn(expected.encode("utf-8"), out)
  
imports: import test.support
  import os
  import os.path
  import sys
  import textwrap
  import zipfile
  import zipimport
  import doctest
  import inspect
  import linecache
  import unittest
  from test.support import os_helper
  from test.support.script_helper import spawn_python, kill_python, assert_python_ok, make_script, make_zip_script
  from test import test_doctest, sample_doctest, sample_doctest_no_doctests, sample_doctest_no_docstrings
label_desc: Use image node_id 5 for calling the ZipSupportTests obj's underlying member method code with example usage: obj.test_doctest_main_issue4197() without return types