class_docstr: Testing tabnanny.check().
class_docstr_tok: ["Testing","tabnanny.check","(",")","."]
docstr: A python file which does not exist actually in system.
docstr_tok: ["A","python","file","which","does","not","exist","actually","in","system","."]
code: def test_when_no_file(self):
      """A python file which does not exist actually in system."""
      path = "no_file.py"
      err = (
          f"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
          f"{os.strerror(errno.ENOENT)}: {path!r}\n"
      )
      with self.assertRaises(SystemExit):
          self.verify_tabnanny_check(path, err=err)
  
imports: from unittest import TestCase, mock
  import errno
  import os
  import tabnanny
  import tokenize
  import tempfile
  import textwrap
  from test.support import captured_stderr, captured_stdout, script_helper, findfile
  from test.support.os_helper import unlink
label_desc: Use image node_id 10 for calling the TestCheck obj's underlying member method code with example usage: obj.test_when_no_file() without return types