parameters: (self, exclude_files)
docstring: Excludes from the test list the files that match elements from 'exclude_files'.
  
          Args:
              exclude_files: a list of paths or glob patterns that match the files to exclude.
          Raises:
              ValueError: if exclude_files contains a non-globbed path that does not correspond to
                  an existing file.
docstring_summary: Excludes from the test list the files that match elements from 'exclude_files'.
docstring_tokens: Excludes from the test list the files that match elements from exclude_files .
function: def exclude_files(self, exclude_files):
          """Excludes from the test list the files that match elements from 'exclude_files'.
  
          Args:
              exclude_files: a list of paths or glob patterns that match the files to exclude.
          Raises:
              ValueError: if exclude_files contains a non-globbed path that does not correspond to
                  an existing file.
          """
          if not self._tests_are_files:
              raise TypeError("_TestList does not contain files.")
          for path in exclude_files:
              if self._test_file_explorer.is_glob_pattern(path):
                  paths = self._test_file_explorer.iglob(path)
                  for expanded_path in paths:
                      self._filtered.discard(expanded_path)
              else:
                  path = os.path.normpath(path)
                  if path not in self._roots:
                      raise ValueError("Unrecognized test file: {}".format(path))
                  self._filtered.discard(path)
function_tokens: def exclude_files ( self , exclude_files ) : if not self . _tests_are_files : raise TypeError ( "_TestList does not contain files." ) for path in exclude_files : if self . _test_file_explorer . is_glob_pattern ( path ) : paths = self . _test_file_explorer . iglob ( path ) for expanded_path in paths : self . _filtered . discard ( expanded_path ) else : path = os . path . normpath ( path ) if path not in self . _roots : raise ValueError ( "Unrecognized test file: {}" . format ( path ) ) self . _filtered . discard ( path )