code: def test_py3_compat(self):
      # gh-2561
      # Test if the oldstyle class test is bypassed in python3
      class C:
          """Old-style class in python2, normal class in python3"""
  
          pass
  
      out = open(os.devnull, "w")
      try:
          np.info(C(), output=out)
      except AttributeError:
          raise AssertionError()
      finally:
          out.close()
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, _assert_valid_refcount
label_desc: Use image node_id 27 for calling the TestRegression obj's underlying member method code with example usage: obj.test_py3_compat() without return types