code: def test_issubclass_refcount_handling(self):
      # bpo-39382: abstract_issubclass() didn't hold item reference while
      # peeking in the bases tuple, in the single inheritance case.
      class A:
          @property
          def __bases__(self):
              return (int,)
  
      class B:
          def __init__(self):
              # setting this here increases the chances of exhibiting the bug,
              # probably due to memory layout changes.
              self.x = 1
  
          @property
          def __bases__(self):
              return (A(),)
  
      self.assertEqual(True, issubclass(B(), int))
  
imports: import unittest
  import typing
  from test import support
label_desc: Use image node_id 10 for calling the TestIsInstanceIsSubclass obj's underlying member method code with example usage: obj.test_issubclass_refcount_handling() and returns: int, A