class_docstr: Tests for PathFinder.
class_docstr_tok: ["Tests","for","PathFinder","."]
code: def test_sys_path(self):
      # Test that sys.path is used when 'path' is None.
      # Implicitly tests that sys.path_importer_cache is used.
      module = "<test module>"
      path = "<test path>"
      importer = util.mock_spec(module)
      with util.import_state(
          path_importer_cache={path: importer}, path=[path]
      ):
          found = self.find(module)
          self.check_found(found, importer)
  
imports: from test.test_importlib import util
  import os
  import sys
  import tempfile
  from types import ModuleType
  import unittest
  import warnings
  import zipimport
label_desc: Use image node_id 2 for calling the FinderTests obj's underlying member method code with example usage: obj.test_sys_path() without return types