class_docstr: Test finding frozen modules.
class_docstr_tok: ["Test","finding","frozen","modules","."]
code: def test_target_ignored(self):
      imported = ("__hello__", "__phello__")
      with import_helper.CleanImport(*imported, usefrozen=True):
          import __hello__ as match
          import __phello__ as nonmatch
      name = "__hello__"
      actual = self.find(name)
      for target in (
          None,
          match,
          nonmatch,
          object(),
          "not-a-module-object",
      ):
          with self.subTest(target):
              spec = self.find(name, target=target)
              self.assertEqual(spec, actual)
  
file_path: cpython/Lib/test/test_importlib/frozen/test_finder.py
imports: from test.test_importlib import abc, util
  import os.path
  import unittest
  from test.support import import_helper, REPO_ROOT, STDLIB_DIR
label_desc: Use image node_id 8 for calling the FindSpecTests obj's underlying member method code with example usage: obj.test_target_ignored() without return types