class_docstr: Testing `tabnanny.errprint()`.
class_docstr_tok: ["Testing","`","tabnanny.errprint","(",")","`","."]
docstr: Asserting result of `tabnanny.errprint()` by giving sample inputs.
docstr_tok: ["Asserting","result","of","`","tabnanny.errprint","(",")","`","by","giving","sample","inputs","."]
code: def test_errprint(self):
      """Asserting result of `tabnanny.errprint()` by giving sample inputs."""
      tests = [
          (["first", "second"], "first second\n"),
          (["first"], "first\n"),
          ([1, 2, 3], "1 2 3\n"),
          ([], "\n"),
      ]
  
      for args, expected in tests:
          with self.subTest(arguments=args, expected=expected):
              with self.assertRaises(SystemExit):
                  with captured_stderr() as stderr:
                      tabnanny.errprint(*args)
                  self.assertEqual(stderr.getvalue(), expected)
  
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 1 for calling the TestErrPrint obj's underlying member method code with example usage: obj.test_errprint() without return types