class_docstr: Tests for frame.clear().
class_docstr_tok: ["Tests","for","frame.clear","(",")","."]
code: def test_clear_does_not_clear_specials(self):
      class C:
          pass
  
      c = C()
      exc = self.outer(c=c)
      del c
      f = exc.__traceback__.tb_frame
      f.clear()
      self.assertIsNot(f.f_code, None)
      self.assertIsNot(f.f_locals, None)
      self.assertIsNot(f.f_builtins, None)
      self.assertIsNot(f.f_globals, None)
  
imports: import gc
  import operator
  import re
  import sys
  import textwrap
  import threading
  import types
  import unittest
  import weakref
  from test import support
  from test.support import threading_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 5 for calling the ClearTest obj's underlying member method code with example usage: obj.test_clear_does_not_clear_specials() without return types